Skip to content

Entities Data

These endpoints manage CRUD (Create, Read, Update, Delete) operations on entity records, including

GET /api/v1/entities/{entity}

Parameters:

NameTypeFromDescriptionRequired
enrichedbooleanqueryReturn more details about the entityFalse
versionstringqueryThe version of the application.True
limitnumberquerylimit for paginationFalse
pagenumberquerypage for paginationFalse
relationFilterarray[string]queryName of the relationship to filter byFalse
relationValuearray[string]queryRelated value to filter byFalse
sort_directionarray[string]queryDirection for sorting. Values: [ ASC, DESC ]False
sort_fieldarray[string]queryField to sort by.False
keyarray[string]queryField key/name used to filter by field.False
operatorarray[string]queryOperator for field filtering. Values: [lt, gt, eq, ne, lk, lte, gte, isNull, isNotNull]False
valuearray[string]queryValue to filter by with field filteringFalse
conditionarray[string]queryCondition to chain multiple field filters. Values: [ AND, OR]. Default AND.False
domainstringheaderDomain of the recordTrue
entitystringpathThe name or id of the entity.True

Response:

{
"error": false,
"status": 200,
"message": "string",
"errors": [{}],
"data": [
{
"id": 0,
"dateUpdated": "string",
"dateCreated": "string",
"createdBy": "string",
"updatedBy": "string",
"domain": "string",
"securityGroup": "string",
"data": {
"entityAttribute": "string",
"entityAttribute2": "string",
"entityAttribute3": "string"
}
}
],
"pagination": {
"hasPreviousPage": true,
"hasNextPage": true,
"previousPage": 0,
"nextPage": 0,
"recordsTotal": 0,
"currentPage": 0,
"startIndex": 0,
"numPages": 0,
"limit": 0
}
}
  • Key filters: Key filters work by limiting the request to retrun only the queried keys in the key[] array passed on the url. Ej: key[]=Name,Age&operator[]=eq,lk&value[]=Carlos,25&condition[]=OR would return only the keys Name and Age for the specified entity where name matches Carlos or age matches 25.

  • Sort direction: Sorts the results from the query in either ascending or descending order. Ej: sort_direction[]=ASC&sort_field[]=name will sort all records by their name alphabetically in ascending order.

  • Relationship filters: Filtering by relationship values is similar to filtering by key. The main difference is that the value that is filtered is the one for the specified relationship. Ej: relationshipFilter[]=77b5b900-7e13-4e18-864a-255fc194481e.related_id_00d4b4b4-d9e3-4a2b-a4e3-209b6f438df9.id&relationshipValue[]=1 will filter all values matching 1 for the specified relationship Something to take into consideration is that relationship have a direction, meaning every relationship will have a left and right entity, and depending on which side of the relationship is being filtered, the query will be different: If filtering by the left entity, the relationValue will be right entity’s id. If filtering by the right entity, the relationValue will be left entity’s related field.

POST /api/v1/entities/{entity}

Parameters:

NameTypeFromDescriptionRequired
versionstringqueryThe version of the application.True
domainstringheaderDomain of the recordTrue
entitystringpathThe name or id of the entity.True

Request Body:

{
"textField": "some text",
"numericField": 123,
"booleanField": false,
"dateField": "2025-10-20T18:57:07.092Z",
"relation1": [
{
"record": {
"primaryKey1": 1,
"primaryKey2": "asd"
},
"operation": "add"
}
],
"relation2": [
{
"record": {
"primaryKey1": 1
},
"operation": "add"
},
{
"record": {
"primaryKey1": 1
},
"operation": "remove"
}
]
}

Response:

{
"error": true,
"status": 0,
"message": "string",
"data": {
"id": 1
},
"entityName": "string"
}
GET /api/v1/entities/{entity}/{id}

Parameters:

NameTypeFromDescriptionRequired
enrichedbooleanqueryReturn more details about the applicationFalse
versionstringqueryThe version of the application.True
domainstringheaderDomain of the recordTrue
entitystringpathThe name or id of the entity.True
idstringpathId of the record.True

Response:

{
"error": false,
"status": 200,
"message": "string",
"errors": [{}],
"data": [
{
"id": 0,
"dateUpdated": "string",
"dateCreated": "string",
"createdBy": "string",
"updatedBy": "string",
"domain": "string",
"securityGroup": "string",
"data": {
"entityAttribute": "string",
"entityAttribute2": "string",
"entityAttribute3": "string"
}
}
],
"pagination": {
"hasPreviousPage": true,
"hasNextPage": true,
"previousPage": 0,
"nextPage": 0,
"recordsTotal": 0,
"currentPage": 0,
"startIndex": 0,
"numPages": 0,
"limit": 0
}
}
PATCH /api/v1/entities/{entity}

Parameters:

NameTypeFromDescriptionRequired
versionstringqueryThe version of the application.True
domainstringheaderDomain of the recordTrue
entitystringpathThe name or id of the entity.True
filterobjectqueryFilter Entity Records by their property values.True

Request Body:

{
"textField": "some text",
"numericField": 123,
"booleanField": false,
"dateField": "2025-10-20T18:57:07.092Z",
"relation1": [
{
"record": {
"primaryKey1": 1,
"primaryKey2": "asd"
},
"operation": "add"
}
],
"relation2": [
{
"record": {
"primaryKey1": 1
},
"operation": "add"
},
{
"record": {
"primaryKey1": 1
},
"operation": "remove"
}
]
}

Response:

{
"error": false,
"status": 200,
"message": "string",
"errors": [{}],
"data": {
"totalRecordsUpdated": 1
},
"pagination": {
"hasPreviousPage": true,
"hasNextPage": true,
"previousPage": 0,
"nextPage": 0,
"recordsTotal": 0,
"currentPage": 0,
"startIndex": 0,
"numPages": 0,
"limit": 0
}
}
DELETE /api/v1/entities/{entity}/{id}

Parameters:

NameTypeFromDescriptionRequired
versionstringqueryThe version of the application.True
domainstringheaderDomain of the recordTrue
entitystringpathThe name or id of the entity.True
idstringpathId of the entity recordTrue

Response:

{
"error": false,
"status": 200,
"message": "string",
"errors": [{}],
"data": "string",
"pagination": {
"hasPreviousPage": true,
"hasNextPage": true,
"previousPage": 0,
"nextPage": 0,
"recordsTotal": 0,
"currentPage": 0,
"startIndex": 0,
"numPages": 0,
"limit": 0
}
}
PUT /api/v1/entities/{entity}/{id}/owner

Parameters:

NameTypeFromDescriptionRequired
versionstringqueryThe version of the application.True
entitystringpathThe name or id of the entity.True
idstringpathid of the recordTrue

Request Body:

{
"newOwner": 1
}

Response:

{
"error": false,
"status": 200,
"message": "string",
"errors": [{}],
"data": [
{
"id": 0,
"dateUpdated": "string",
"dateCreated": "string",
"createdBy": "string",
"updatedBy": "string",
"domain": "string",
"securityGroup": "string",
"data": {
"entityAttribute": "string",
"entityAttribute2": "string",
"entityAttribute3": "string"
}
}
],
"pagination": {
"hasPreviousPage": true,
"hasNextPage": true,
"previousPage": 0,
"nextPage": 0,
"recordsTotal": 0,
"currentPage": 0,
"startIndex": 0,
"numPages": 0,
"limit": 0
}
}