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"
}
]
}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"
}
]
}Use a valid Bearer token to authenticate.
Show child attributes