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.eyJzdWIiOiIxMTg3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDU5LCJleHAiOjE3NjM1NDI0NTksImp0aSI6IjBjNjZkMTVjLWQ4MzEtNGYyYS1hMGEzLWVkMWEzYmIzZTYyZCJ9.7wX1I3INx4ffqMtQzsPNAbIzsDPi8-3_xUa2DxIHZyU
Host: example.org
Cookie: 

Body

{
  "job_driver": {
    "job_driver_ids": [
      344,
      345,
      346,
      1000
    ],
    "start_date": "2025-10-27",
    "end_date": "2025-12-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/"83949eb24f7e8e73ce29cd2ae7d407bd"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6c5ab2cb-72e4-44d6-976a-269b67e4ccf7
x-runtime: 0.076993
content-length: 1560

Body

{
  "job_drivers": [
    {
      "id": 344,
      "chat_id": 603,
      "contract": {
        "id": 275,
        "days_to_expire": 61,
        "end_date": "2025-12-20",
        "job_driver_id": 344,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-10-27",
        "state": "pending",
        "wages": [
          {
            "id": 606,
            "driver_rate": null,
            "kind": "bank_holiday",
            "rate": "84.0"
          }
        ]
      },
      "currency": "GBP",
      "driver": {
        "id": 1188,
        "first_name": "Retta",
        "last_name": "Doyle",
        "profile_id": 550,
        "referral_code": "515980"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-10-20T08:54:19.842Z",
      "wage": {
        "amount": "75.6",
        "type": "fixed"
      }
    },
    {
      "id": 345,
      "chat_id": 604,
      "contract": {
        "id": 276,
        "days_to_expire": 61,
        "end_date": "2025-12-20",
        "job_driver_id": 345,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-10-27",
        "state": "pending",
        "wages": [
          {
            "id": 607,
            "driver_rate": null,
            "kind": "bank_holiday",
            "rate": "87.0"
          }
        ]
      },
      "currency": "GBP",
      "driver": {
        "id": 1189,
        "first_name": "Jerrod",
        "last_name": "Stoltenberg",
        "profile_id": 551,
        "referral_code": "072651"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-10-20T08:54:19.864Z",
      "wage": {
        "amount": "78.3",
        "type": "fixed"
      }
    },
    {
      "id": 346,
      "chat_id": 605,
      "contract": {
        "id": 277,
        "days_to_expire": 61,
        "end_date": "2025-12-20",
        "job_driver_id": 346,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-10-27",
        "state": "pending",
        "wages": [
          {
            "id": 608,
            "driver_rate": null,
            "kind": "weekday",
            "rate": "87.0"
          }
        ]
      },
      "currency": "GBP",
      "driver": {
        "id": 1190,
        "first_name": "Marcelino",
        "last_name": "Durgan",
        "profile_id": 552,
        "referral_code": "766587"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-10-20T08:54:19.884Z",
      "wage": {
        "amount": "78.3",
        "type": "fixed"
      }
    }
  ]
}