DeviceJobExecution Data Type

Properties
name data type description
status DeviceJobStatus
Properties inherited from JobExecution
accountId number
jobId number
executionId number
startedOn number
endedOn number
log string
optlock number The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.

Example

{
  "status" : "SKIPPED",
  "accountId" : 12345,
  "jobId" : 12345,
  "executionId" : 12345,
  "startedOn" : 12345,
  "endedOn" : 12345,
  "log" : "...",
  "optlock" : 12345
}