1. Help Center
  2. API documentation

Step 6: Complete a Task as a Dispatcher

Use this endpoint to complete a task by a Dispatcher.

Request Parameters

Parameter

Required?

Type

Description

access_token

Yes

String

Access token generated 

company_slug

Yes

String

Dispatcher company slug

task_group_id

Yes

Integer

Task Group Id

id

Yes

Integer

Task id

Request Sample cURL/Payload

curl -X POST "https://umbrella-dev.yojee.com/api/v3/dispatcher/task_groups/14074/task/24415/complete" -H "accept: application/json" -H "ACCESS_TOKEN: pCVPeEEUuKnM7geUOcSLY2imA5l6YUdjymkApBDAAGY=" -H "COMPANY_SLUG: yojee"

Sample Response Body

Server Code Status: 200 => Task completed successfully by dispatcher

example value(s)

{
"data": {
"completion_time": "2019-06-19T08:08:30.092122Z",
"id": 24415,
"start_time": null,
"state": "completed",
"task_group_id": 14074
}
}