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/324/job_drivers
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTY3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDU5LCJleHAiOjE3NjM1NDI0NTksImp0aSI6Ijg5NzJkMzMyLTExZTQtNDJhOC1iNWJlLWY4ZTFjYWRmZThhNyJ9.bmC7Av2gbWvfTpuv4rs5h-VSlhy_fyeKWKRyLG_o79c
Host: example.org
Cookie:
Body
{
"job_driver": {
"driver_id": 1166,
"contracts_attributes": {
"0": {
"start_date": "2025-10-27T08:54:19.247Z",
"end_date": "2026-10-20T08:54:19.247Z",
"wages_attributes": {
"0": {
"kind": "bank_holiday",
"rate": 78
}
}
}
}
}
}
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/"7e8034b0e6e70d5ee51148e173cc53ab"
cache-control: max-age=0, private, must-revalidate
x-request-id: cbc169f2-2da2-45f9-8844-57c4410686ab
x-runtime: 0.063097
content-length: 202
Body
{
"job_driver": {
"id": 338,
"currency": "GBP",
"driver": {
"id": 1166,
"first_name": "Ken",
"last_name": "Veum",
"profile_id": null,
"referral_code": "182101"
},
"kind": "accepted",
"updated_at": "2025-10-20T08:54:19.283Z"
}
}