OS1 Services
...
Dispatch Service
Integrate with Dispatch

How to: Manage Mobile APIs

3min

For information about prerequisites, see Integrate with Dispatch.

Update Execution Task Status

To update the Execution Task status, call the Update Execution Task Status endpoint and pass the following required members in the request body. Also, specify the workflowInstanceId and taskId in the path parameter.

Member

Description

Remarks

jobId

ID of the Job

string

dispatchId

ID of the Dispatch

string

attemptId

Attempt number of the workflow instance

number

status

Status of the task

stringEnum: [ STARTED, CLOSED ]

sequenceId

Sequence number of the Execution Task

number

stateName

Task/state name of the taskId

string

timestamp

Epoch timestamp of the status

number minimum: 1

data

Output of the Execution Task



meta

Meta data related to the Task



updatedBy > id

ID

string minLength: 1 maxLength: 64

updatedBy > name

Name

string maxLength: 256

updatedBy > appId

App ID

string maxLength: 64

The JSON request body should be similar to the following:

JSON


Update Execution Workflow Status

To update the Execution Workflow status, call the Update Execution Task Status endpoint and pass the following required members in the request body. Also, specify the workflowInstanceId in the path parameter.

Member

Description

Remarks

status

Status of the workflow

string Enum: [ STARTED, CLOSED ]

timestamp

Epoch timestamp of the status

number minimum: 1

dispatchId

ID of the Dispatch

string

jobId

ID of the Job

string

attemptId

Attempt number of the workflow instance

number

code

Workflow objective code

string

data

Collated data of output of each execution task



meta

Metadata related to the Workflow



updatedBy > id

ID

string minLength: 1 maxLength: 64

updatedBy > name

Name

string maxLength: 256

updatedBy > appId

App ID

string maxLength: 64

The JSON request body should be similar to the following:

JSON