Skip to Content

Update Entity

Update an existing record in the entity, this endpoint will return the updated record with the persistenceId.

PUT /api/entities/:entityName

Request Body

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

If the table linked to the entity is not exists, the endpoint return a 404 error.

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.

Response

{ "data": [ { "primaryKey": "value", "...": "...", "persistenceId": "value", } ], "status": "OK", "code": 200, "timestamp": 1234567890, "meta": {}, }

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