Jobs > Drivers

Extend contract for job 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/331/job_drivers/extend_contract

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTg3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjAzLCJleHAiOjE3NTU4NTgyMDMsImp0aSI6IjAyNzBiYmIxLWI4NGQtNGQ5OC04ZWIyLTQwZjRiM2I5MjY2MSJ9.7viYg_OyE4h5KuODCuKJmWMwEhKi7kwcy0uBzwYNW8s
Host: example.org
Cookie: 

Body

{
  "job_driver": {
    "job_driver_ids": [
      344,
      345,
      346,
      1000
    ],
    "start_date": "2025-07-30",
    "end_date": "2025-09-23"
  }
}

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/"f957135b2a6c8949650c3ca80d1a8c5c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 713babfa-5bda-494d-9021-cfe89fb246da
x-runtime: 0.118913
content-length: 1491

Body

{
  "job_drivers": [
    {
      "id": 344,
      "chat_id": 603,
      "contract": {
        "id": 275,
        "days_to_expire": 62,
        "end_date": "2025-09-23",
        "job_driver_id": 344,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-07-30",
        "state": "pending",
        "wages": [
          {
            "id": 606,
            "driver_rate": null,
            "kind": "weekday",
            "rate": "63.0"
          }
        ]
      },
      "driver": {
        "id": 1188,
        "first_name": "Wilda",
        "last_name": "Jast",
        "profile_id": 550,
        "referral_code": "876327"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-07-23T10:23:23.101Z",
      "wage": {
        "amount": "56.7",
        "type": "fixed"
      }
    },
    {
      "id": 345,
      "chat_id": 604,
      "contract": {
        "id": 276,
        "days_to_expire": 62,
        "end_date": "2025-09-23",
        "job_driver_id": 345,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-07-30",
        "state": "pending",
        "wages": [
          {
            "id": 607,
            "driver_rate": null,
            "kind": "sunday",
            "rate": "68.0"
          }
        ]
      },
      "driver": {
        "id": 1189,
        "first_name": "Rick",
        "last_name": "Cole",
        "profile_id": 551,
        "referral_code": "094793"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-07-23T10:23:23.126Z",
      "wage": {
        "amount": "61.2",
        "type": "fixed"
      }
    },
    {
      "id": 346,
      "chat_id": 605,
      "contract": {
        "id": 277,
        "days_to_expire": 62,
        "end_date": "2025-09-23",
        "job_driver_id": 346,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-07-30",
        "state": "pending",
        "wages": [
          {
            "id": 608,
            "driver_rate": null,
            "kind": "weekday",
            "rate": "75.0"
          }
        ]
      },
      "driver": {
        "id": 1190,
        "first_name": "Margherita",
        "last_name": "Hartmann",
        "profile_id": 552,
        "referral_code": "275842"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-07-23T10:23:23.151Z",
      "wage": {
        "amount": "67.5",
        "type": "fixed"
      }
    }
  ]
}