Skip to main content
POST
/
dispatch
Dispatch routing result
curl --request POST \
  --url https://apiweb.mile.app/api/v3/dispatch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resultId": "6352736c628401059b37a2e2"
}
'
{
  "status": true,
  "success": 1,
  "failed": 0,
  "statusCode": 200,
  "tasks": [
    {
      "_id": "63970a49cc6ae973f90929e2",
      "title": null,
      "status": true,
      "message": "success",
      "action": "update"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
resultId
string
required

Unique identifier for the routing result that generated by system. Example: 6352736c628401059b37a2e2

Response

Success

status
string

Status of response.

success
string

Number of task success dispatched.

failed
string

Number of task failed dispatched.

statusCode
string

Status code of response.

tasks
object[]

List of details task dispatched.