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/347/job_drivers/extend_contract

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjI3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2MzkwLCJleHAiOjE3NjYyMTgzOTAsImp0aSI6IjIzNmU4NGM0LWRhMmYtNDEzOS1hZTVmLTcyZWRkZjFmNmYwZSJ9.FtHZi0e1uKrzv3xuUbgMDuXsxMOenC9Rnm9KjVYWa6c
Host: example.org
Cookie: 

Body

{
  "job_driver": {
    "job_driver_ids": [
      363,
      364,
      365,
      1000
    ],
    "start_date": "2025-11-27",
    "end_date": "2026-01-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/"7fcef9facc19dd6940376034b1e4ca43"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6ccd46f1-bd1f-4bf7-baaa-c25d9eb8a8de
x-runtime: 0.101517
content-length: 1628

Body

{
  "job_drivers": [
    {
      "id": 363,
      "chat_id": 635,
      "contract": {
        "id": 291,
        "days_to_expire": 61,
        "end_date": "2026-01-20",
        "job_driver_id": 363,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-11-27",
        "state": "pending",
        "wages": [
          {
            "id": 638,
            "driver_rate": null,
            "kind": "bank_holiday",
            "rate": "49.0"
          }
        ]
      },
      "currency": "GBP",
      "driver": {
        "id": 1228,
        "financial_company_id": null,
        "first_name": "Brett",
        "last_name": "Wiza",
        "profile_id": 569,
        "referral_code": "796582"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-11-20T08:13:10.836Z",
      "wage": {
        "amount": "44.1",
        "type": "fixed"
      }
    },
    {
      "id": 364,
      "chat_id": 636,
      "contract": {
        "id": 292,
        "days_to_expire": 61,
        "end_date": "2026-01-20",
        "job_driver_id": 364,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-11-27",
        "state": "pending",
        "wages": [
          {
            "id": 639,
            "driver_rate": null,
            "kind": "weekday",
            "rate": "35.0"
          }
        ]
      },
      "currency": "GBP",
      "driver": {
        "id": 1229,
        "financial_company_id": null,
        "first_name": "Angelo",
        "last_name": "Wolf",
        "profile_id": 570,
        "referral_code": "629237"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-11-20T08:13:10.861Z",
      "wage": {
        "amount": "31.5",
        "type": "fixed"
      }
    },
    {
      "id": 365,
      "chat_id": 637,
      "contract": {
        "id": 293,
        "days_to_expire": 61,
        "end_date": "2026-01-20",
        "job_driver_id": 365,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-11-27",
        "state": "pending",
        "wages": [
          {
            "id": 640,
            "driver_rate": null,
            "kind": "sunday",
            "rate": "90.0"
          }
        ]
      },
      "currency": "GBP",
      "driver": {
        "id": 1230,
        "financial_company_id": null,
        "first_name": "Jesse",
        "last_name": "Franecki",
        "profile_id": 571,
        "referral_code": "093200"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-11-20T08:13:10.884Z",
      "wage": {
        "amount": "81.0",
        "type": "fixed"
      }
    }
  ]
}