Skip to main content

Sublocations

Schema​

Sublocation​

NameTypeDescriptionExample
descriptionstring?The description of the sublocation"My description"
displayIdIDThe display for the sublocation"A1-B2"
idIDThe unique sublocation ID"ckmnpybisiy5x08abky4g2d1f"
locationIdIDThe ID of the location"ckmnpybisiy5x08abky4g2d1f"
parentIdID?The ID of the parent location"ckmnpybisiy5x08abky4g2d1f"
updatedAtDateTimeWhen this location was last updated"2021-03-24 17:26:46.983Z"

REST Endpoints​

GET /sublocations​

Read the list of sublocations

Accepts all standard pagination parameters.

Allowed orderBy fields: createdAt, id, updatedAt.

Allowed filter fields: createdAt, id, locationId, parentId, updatedAt.

Response​

A list of Sublocation objects.

Example Request​

GET https://api.kojo.tech/sublocations

Example Response​

[
{
"id": "clku7gtqt000cpwtzv6e971xg",
"createdAt": "2021-03-24 17:26:46.983Z",
"updatedAt": "2021-03-24 17:26:46.983Z",
"description": "My description",
"displayId": "A1",
"locationId": "ckmnpybisiy5x08abky4g2d1f",
"parentId": null,
}
]