# Create
To create an Entity perform the request like
POST /api/${ENTITY_NAME}/
{
"name": "Some Name",
"email": "[email protected]",
"someObject": {
"param1": "param data",
"param2": {"id": 5}
}
}
Where ${ENTITY_NAME} is the name of the Entity in plural form (e.g. users - POST /api/users/, bookings - POST /api/bookings/).
Every parameter is documented in the corresponding page of Entity.
The Request may return errors (refer to errors)
Validation error fields can be accessed with dot notation. E.g.
{
"message": "Invalid Data",
"errors": {
"name": ["..."],
"email": ["..."],
"someObject": ["..."],
"someObject.param1": ["..."],
"someObject.param2.id": ["..."],
}
}