Batch Insert Entities
Insert multiple records in the entity in a single request, this endpoint will return the inserted records with the persistenceId.
POST /api/entities/:entityName/batchIf the table linked to the entity is not exists, the endpoint will create the table and insert the records.
It will use the defined primary keys in Entity Form and will create new table with the specified primary keys.
Request Body
[
{ "key": "value" },
{ "key": "value" },
]Response
{
"data": [
{ "key": "value", "persistenceId": "..." },
{ "key": "value", "persistenceId": "..." },
],
"status": "OK",
"code": 200,
"timestamp": 1234567890,
"meta": {},
}Read the Persistence ID documentation for more information about the persistenceId.