Assign job driver (admin)
Jobs > Drivers
POST assign job driver
Endpoint
POST /api/v1/jobs/:id/job_drivers
Parameters
| Name | Description |
|---|---|
| job_driver[driver_id] required | Array of driver ids |
| job_driver[driver_id] required | Job driver driver |
| job_driver[contracts_attributes] required | Job driver contracts attributes |
Request
Route
POST /api/v1/jobs/340/job_drivers
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjA3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2MzkwLCJleHAiOjE3NjYyMTgzOTAsImp0aSI6ImY5MTEyZGQwLTBmZGItNGRmMy1hNjBlLTkwYjg5NDgwMzFlOSJ9.qYt7WrMXtrNbaRvXqWrrNzre6ANl3vWkkzLXEBYpC5k
Host: example.org
Cookie:
Body
{
"job_driver": {
"driver_id": 1206,
"contracts_attributes": {
"0": {
"start_date": "2025-11-27T08:13:10.173Z",
"end_date": "2026-11-20T08:13:10.173Z",
"wages_attributes": {
"0": {
"kind": "bank_holiday",
"rate": 70
}
}
}
}
}
}
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/"75437cda43434309039ab8fc74de7f87"
cache-control: max-age=0, private, must-revalidate
x-request-id: 32e17f91-8492-46c5-8b61-507fcf4c2034
x-runtime: 0.069479
content-length: 235
Body
{
"job_driver": {
"id": 357,
"currency": "GBP",
"driver": {
"id": 1206,
"financial_company_id": null,
"first_name": "Mardell",
"last_name": "Kling",
"profile_id": null,
"referral_code": "216133"
},
"kind": "accepted",
"updated_at": "2025-11-20T08:13:10.208Z"
}
}