Skip to main content
DELETE
/
task
/
{id}
Delete task by ID
curl --request DELETE \
  --url https://apiweb.mile.app/api/v3/task/{id} \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "message": "Success",
  "task": {
    "_id": "6352736c628401059b37a2e2",
    "flow": "Visit",
    "hubId": "634e98498ce07d29474a7e29",
    "startTime": "2022-11-02T07:28:23+00:00",
    "organizationId": "634e98098ce07d29474a7e22",
    "status": "UNASSIGNED",
    "hub": {
      "_id": "634e98498ce07d29474a7e29",
      "name": "Jakarta",
      "lat": -6.205154152722965,
      "lng": 106.84667067970608
    },
    "orderIndex": 10,
    "field1": "Jack Ward",
    "field2": "Gambir Jakarta",
    "field3": "-6.230815251,106.75684387",
    "createdFrom": "API",
    "endTime": "2022-11-05T07:28:23+00:00",
    "createdBy": "Roger",
    "createdTime": "2022-11-01T07:28:23+00:00"
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

taskId
string
required

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

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

task
object

Detail of object task.