Endpoint for Drivers to Cancel a Task

POST /api/yard-task/cancel
application/json

Body

Responses

  • default application/json

    Task cancelled successfully

    Additional properties are allowed.

  • Not Authorized

  • Not Allowed

POST /api/yard-task/cancel
curl \
 -X POST https://api-dev.gatego.io/api/yard-task/cancel \
 -H "Content-Type: application/json" \
 -d '{"task_id":1,"reason":"Reason"}'
Request examples
{
  "task_id": 1,
  "reason": "Reason"
}
Response examples (default)
{}