Skip to main content
PATCH
/
tasks
/
bulk
Partial update multiple tasks
curl --request PATCH \
  --url https://apiweb.mile.app/api/v3/tasks/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tasks": [
    {
      "_id": "62067ee1cd77000042006f89",
      "field1": "Jack Emiliano Ward"
    },
    {
      "_id": "62067ee3cd77000042006f8b",
      "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
object[]
required

Response

Success

success
integer

Total success partial updated task.

failed
integer

Total failed partial updated task.

tasks
object[]

Detail of partial updated task.