API :: CRUD Operations¶
CRUD stands for create, read, update, delete.
Note
You can obtain the list of entity types under: Administration > Entity Manager > the left column.
Available entity attributes and their details can be obtained under: Administration > Entity Manager > {Entity Type} > Fields. You can View Details of a particular field to explore its attributes.
List¶
GET {entityType}
Returns a list of records of a specific entity type.
GET parameters:
- maxSize– int – max size;
- offset– int – offset;
- where– array – filters;
- orderBy– string – attribute to sort by;
- order– "asc"|"desc" – sort direction;
- select– string – list of attributes to be returned, separated by comma; if not specified, then all attributes will be returned; whitespaces are not allowed.
Example:
GET Account?offset=0&maxSize=20
Returns:
{
  "list": [... array of records...],
  "total": {totalCountOfRecords}
}
Note that if the record count is disabled for the entity type, -1 or -2 will be returned instead of the actual total number of records. -1 means that there are more records – pagination can be used to retrieve the next portion.
See more info about search parameters.
Additional headers:
- X-No-Total: true– won't return a total number of records (can be reasonable for big tables, the request will be processed faster).
Read¶
GET {entityType}/{id}
Returns attributes of a specific record.
Example:
GET Account/5564764442a6d024c
Create¶
POST {entityType}
Creates a new record of a specific entity type.
Payload: Object of entity attributes.
Returns attributes of the created record.
Headers:
- Content-Type: application/json
Example:
POST Account
Payload:
{
  "name": "Test",
  "assignedUserId": "1"
}
Additional headers:
- X-Skip-Duplicate-Check: true– skips checking for duplicates (won't return 409 Error if a duplicate record is found).
Update¶
PUT {entityType}/{id}
Updates an existing record.
Payload: Object of entity attributes needed to be changed.
Returns attributes of the updated record.
Headers:
- Content-Type: application/json
Example:
PUT Account/5564764442a6d024c
Payload:
{
  "assignedUserId": "1"
}
Delete¶
DELETE {entityType}/{id}
Deletes an existing record.
Returns true.
Example:
DELETE Account/5564764442a6d024c