Skip to Content

Batch Update Entities

Update multiple records in the entity in a single request, this endpoint will return the updated records with the persistenceId.

PUT /api/entities/:entityName/batch

It is required to provide all the primary keys in the request body.
If you don’t provide all the primary keys, the endpoint will return a 400 error.

Request Body

[ { "primaryKey": "value", "...": "..." }, ]

Response

{ "data": [ { "primaryKey": "value", "...": "...", "persistenceId": "..." }, ], }

Read the Persistence ID documentation for more information about the persistenceId.