batch update api