Reject job driver
Jobs > Drivers
POST reject job driver(admin)
Endpoint
POST /api/v1/jobs/:job_id/job_drivers/:id/reject
Parameters
Name | Description |
---|---|
job_driver[reason] required | Rejection reason |
Request
Route
POST /api/v1/jobs/349/job_drivers/373/reject
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjI0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTc4LCJleHAiOjE3NDAxNDM1NzgsImp0aSI6ImI1Y2RiZDllLWViODktNDMyMS05NmVjLTU3ZWViNzU2ZGM3NyJ9.Qzbomk3-R_HEja26dfUATIG7WGwx5J0vX0Rc-M45bsM
Host: example.org
Cookie:
Body
{
"job_driver": {
"ignore_reason": "Driver has no experience"
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"eb11bba21896f1de9c1f540af9eb3fe3"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9dcbe929-9eb7-49e3-8f1a-ee3aa4225a25
x-runtime: 0.027305
content-length: 187
Body
{
"job_driver": {
"id": 373,
"driver": {
"id": 1223,
"first_name": "Bev",
"last_name": "Windler",
"profile_id": 564,
"referral_code": "277292"
},
"kind": "rejected",
"updated_at": "2025-01-22T13:12:58.559Z"
}
}