Update (or create) job driver wages (admin)
Jobs > Drivers
PATCH wages
Endpoint
PATCH /api/v1/jobs/:job_id/job_drivers/:id/wages
Parameters
Name | Description |
---|---|
job_driver[contracts_attributes] required | Job driver contracts attributes |
job_driver[timesheet_ids] | Job driver timesheet ids |
Request
Route
PATCH /api/v1/jobs/364/job_drivers/384/wages
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjcyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTIzLCJleHAiOjE3NTExMDg1MjMsImp0aSI6ImQ3YmI2YThlLTUyZDctNDE4OS1hMGM2LTgwZDUxYjU1OGY0NSJ9.XLHX9HwblTFFxMN6kTfu0cZsRDBPv4EUY-i8_xYo4iw
Host: example.org
Cookie:
Body
{
"job_driver": {
"contracts_attributes": {
"0": {
"id": 306,
"wages_attributes": {
"0": {
"kind": "bank_holiday",
"rate": 50
},
"1": {
"id": 670,
"kind": "sunday",
"rate": 75,
"driver_rate": 44
},
"2": {
"id": 671,
"kind": "saturday",
"rate": 200,
"driver_rate": 150
}
}
}
},
"timesheet_ids": [
165
]
}
}
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/"4714be6aa36af9ee863eebace479bf67"
cache-control: max-age=0, private, must-revalidate
x-request-id: ce28c35a-8df6-421a-8deb-9dd92e1f6ee8
x-runtime: 0.035687
content-length: 189
Body
{
"job_driver": {
"id": 384,
"driver": {
"id": 1271,
"first_name": "Gilbert",
"last_name": "Frami",
"profile_id": 578,
"referral_code": "027027"
},
"kind": "accepted",
"updated_at": "2025-05-29T11:02:03.916Z"
}
}