Skip to main content
PUT
/
tasks
/
bulk
/
#
Update multiple tasks
curl --request PUT \
  --url 'https://apiweb.mile.app/api/v3/tasks/bulk/#' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tasks": [
    {
      "_id": "62067ee1cd77000042006f89",
      "flow": "Visit",
      "hubId": "634e98498ce07d29474a7e29",
      "field1": "Jack Emiliano Ward",
      "field2": "Gambir Jakarta",
      "field3": "-6.230815251,106.75684387",
      "startTime": "2022-11-02T07:28:23+00:00",
      "endTime": "2022-11-05T07:28:23+00:00"
    },
    {
      "_id": "62067ee3cd77000042006f8b",
      "flow": "Visit",
      "hubId": "634e98498ce07d29474a7e29",
      "field1": "John Gaviria Birdy"
    }
  ]
}
'
{
  "success": 2,
  "failed": 0,
  "tasks": [
    {
      "status": true,
      "message": "Success",
      "_id": "62067ee1cd77000042006f89"
    },
    {
      "status": true,
      "message": "Success",
      "_id": "62067ee3cd77000042006f8b"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
tasks
putRequestTask · object[]
required

Response

Success

success
integer

Total success updated task.

failed
integer

Total failed updated task.

tasks
object[]

Detail of updated task.