Entities
Let's add some description in this file, this can also be done directly from gitbook if needed.
List entities in the same workspace.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageinteger · min: 1OptionalDefault:
Which page to fetch
1pageSizeinteger · min: 1 · max: 30OptionalDefault:
Page size to use
30statusstring · enumOptionalPossible values:
Entity status
sortBystring · enumOptionalDefault:
Sort by attribute
createdAtPossible values: sortOrderstring · enumOptionalDefault:
Sort order
ascPossible values: Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
get
/entitiesGET /rest/entities HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"page": 1,
"next": 1,
"prev": 1,
"pageSize": 1,
"total": 1,
"results": [
{
"id": "text",
"legacyId": 1,
"name": "text",
"status": "ACTIVE",
"createdAt": "text",
"updatedAt": "text"
}
]
}Find an entity by ID.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Id of the target entity
Responses
200
Successful response
application/json
400
Invalid input data
application/json
401
Authorization not provided
application/json
403
Insufficient access
application/json
404
Not found
application/json
500
Internal server error
application/json
get
/entities/{id}GET /rest/entities/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"legacyId": 1,
"name": "text",
"status": "ACTIVE",
"createdAt": "text",
"updatedAt": "text"
}Last updated