Extend contract for job drivers
Jobs > Drivers
POST extend contract
Endpoint
POST /api/v1/jobs/:id/job_drivers/extend_contract
Parameters
Name | Description |
---|---|
job_driver[job_driver_ids] required | Array of job driver ids |
job_driver[start_date] required | New contract start date |
job_driver[end_date] required | New contract end date |
Request
Route
POST /api/v1/jobs/329/job_drivers/extend_contract
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTc4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTMzLCJleHAiOjE3NDUwNTY5MzMsImp0aSI6Ijc2MTA3NTMxLTE0NGYtNDJmZi05ODdjLTNkMDgwN2Y3MDA2MSJ9.gJmg45_2ixCdWFskJqp7Tjf7WC3WWQK5sK55KHZqm_4
Host: example.org
Cookie:
Body
{
"job_driver": {
"job_driver_ids": [
343,
344,
345,
1000
],
"start_date": "2025-03-27",
"end_date": "2025-05-20"
}
}
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
per-page: 20
total: 3
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"5310681bf315f5a7a4231016ad1811a3"
cache-control: max-age=0, private, must-revalidate
x-request-id: 24db26a7-4e12-4dad-82ce-b9ae37a2bec8
x-runtime: 0.083000
content-length: 1283
Body
{
"job_drivers": [
{
"id": 343,
"chat_id": 602,
"contract": {
"id": 274,
"days_to_expire": 61,
"end_date": "2025-05-20",
"job_driver_id": 343,
"policy_schema": {
"markable_as_ended": false
},
"start_date": "2025-03-27",
"state": "pending"
},
"driver": {
"id": 1179,
"first_name": "Masako",
"last_name": "McGlynn",
"profile_id": 547,
"referral_code": "529329"
},
"kind": "accepted",
"started_at": null,
"updated_at": "2025-03-20T10:02:13.261Z",
"wage": {
"amount": "28.29",
"type": "fixed"
}
},
{
"id": 344,
"chat_id": 603,
"contract": {
"id": 275,
"days_to_expire": 61,
"end_date": "2025-05-20",
"job_driver_id": 344,
"policy_schema": {
"markable_as_ended": false
},
"start_date": "2025-03-27",
"state": "pending"
},
"driver": {
"id": 1180,
"first_name": "Elin",
"last_name": "Auer",
"profile_id": 548,
"referral_code": "224019"
},
"kind": "accepted",
"started_at": null,
"updated_at": "2025-03-20T10:02:13.280Z",
"wage": {
"amount": "77.79",
"type": "fixed"
}
},
{
"id": 345,
"chat_id": 604,
"contract": {
"id": 276,
"days_to_expire": 61,
"end_date": "2025-05-20",
"job_driver_id": 345,
"policy_schema": {
"markable_as_ended": false
},
"start_date": "2025-03-27",
"state": "pending"
},
"driver": {
"id": 1181,
"first_name": "Lavonna",
"last_name": "Medhurst",
"profile_id": 549,
"referral_code": "921487"
},
"kind": "accepted",
"started_at": null,
"updated_at": "2025-03-20T10:02:13.300Z",
"wage": {
"amount": "49.19",
"type": "fixed"
}
}
]
}