Skip to main content

BaseJob

Object

A background job. params is free-form JSON. For connector entity jobs it is:

{ "params": { "buildingId": "BLDG8R2nW3kq" } }

for importEntities/<connectorId>/<sourceType>, and

{
"connectorId": "CON…",
"sourceType": "room",
"commitMessage": "Rename floor 2 rooms",
"rules": { "typescript": "<base64>", "javascript": "<base64>" },
"noEntityChanges": true,
"redispatchedEntities": 12
}

for mergeEntities/<connectorId>/<sourceType>. noEntityChanges is present only on a save that changed no entity, such as a rule-only save. redispatchedEntities is present only when the merge picked up rows a failed merge left behind.

type BaseJob {
completedAt: DateTime
createdAt: DateTime
createdBy: String
description: String
id: String
name: String
orgId: String
params: GraphQLJSON
parentResourceId: String
percentageComplete: Int
state: JobState
status: String
updatedAt: DateTime
}

Fields​

FieldTypeDescription
completedAtDateTime
createdAtDateTime
createdByString
descriptionString
idString
nameString
orgIdString
paramsGraphQLJSONFree-form JSON the job was started with; see the examples in the type description.
parentResourceIdString
percentageCompleteInt
stateJobState
statusString
updatedAtDateTime

Used by​