Skip to content

GetChangeDocs

Returns the current document of up to 100 work orders or entities, in the same shape the change feed uses. Use it to load your first copy, page by page with ids, or to refresh one object. The document’s fields are on Change feed: work orders and entities.

GET /api/public/changes/doc?type=WO&ids=773284,773285
APIKey: your-api-key
Parameter Meaning
type The object type. Required. WO for work orders, ENT for entities.
ids The IDs, separated by commas. From 1 to 100. Required.
{
"type": "WO",
"items": [
{ "id": 773284, "ref": "ABCU1234567", "jobId": 173873, "workflowId": 104, "status": 0, "...": "..." }
],
"asOf": "6f1c0e9a2b7d4f3c8e5a1b2c3d4e5f60:1521",
"notFound": [773285]
}
Field Meaning
items The documents, with labels. Events and data fields the key’s user may not see are left out.
asOf The newest change when the documents were read.
notFound IDs with no document: the object does not exist, or the key may not see it. Left out when every ID was found.
Rule Reply when it fails
type is given, known, the key has its permission and the key’s user may read it. 400 invalid_parameter, or 403 permission_denied without the permission or when the user may not read entities
ids holds 1 to 100 numbers. 400 invalid_parameter

The errors that apply to every endpoint are on Change feed.