Skip to main content
PUT
/
tasks
/
bulk
/
move
Move multiple tasks
curl --request PUT \
  --url https://apiweb.mile.app/api/v3/tasks/bulk/move \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tasks": [
    {
      "_id": "62067ee1cd77000042006f89",
      "hubId": "634e98498ce07d29474a7e29"
    },
    {
      "_id": "62067ee3cd77000042006f8b",
      "hubId": "634e98498ce07d29474a7e29"
    }
  ]
}
'
{
  "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 move task.

failed
integer

Total failed move task.

tasks
object[]

Detail of move task.