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.eyJzdWIiOiIxMTg3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTIxLCJleHAiOjE3NTExMDg1MjEsImp0aSI6IjRjYzg2Y2I2LWVlZDAtNGIwZS05NDQyLThmMzk0MWVmMDliMyJ9.oMjyS4c2LxvNnyvNZDSf6MVsW3OFwxlnHLYyQ-Li4dA
Host: example.org
Cookie: 

Body

{
  "job_driver": {
    "job_driver_ids": [
      344,
      345,
      346,
      1000
    ],
    "start_date": "2025-06-05",
    "end_date": "2025-07-29"
  }
}

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/"b273c2b87f8b7bcbccca7dd7c925253d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 989ffb85-bc78-4f33-a694-5130f7064f9e
x-runtime: 0.098875
content-length: 1445

Body

{
  "job_drivers": [
    {
      "id": 344,
      "chat_id": 603,
      "contract": {
        "id": 275,
        "days_to_expire": 61,
        "end_date": "2025-07-29",
        "job_driver_id": 344,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-06-05",
        "state": "pending",
        "wages": [
          {
            "id": 606,
            "kind": "saturday",
            "rate": "30.0"
          }
        ]
      },
      "driver": {
        "id": 1188,
        "first_name": "Heidy",
        "last_name": "Kassulke",
        "profile_id": 550,
        "referral_code": "596985"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-05-29T11:02:01.632Z",
      "wage": {
        "amount": "27.0",
        "type": "fixed"
      }
    },
    {
      "id": 345,
      "chat_id": 604,
      "contract": {
        "id": 276,
        "days_to_expire": 61,
        "end_date": "2025-07-29",
        "job_driver_id": 345,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-06-05",
        "state": "pending",
        "wages": [
          {
            "id": 607,
            "kind": "bank_holiday",
            "rate": "88.0"
          }
        ]
      },
      "driver": {
        "id": 1189,
        "first_name": "Jake",
        "last_name": "Wiegand",
        "profile_id": 551,
        "referral_code": "218710"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-05-29T11:02:01.653Z",
      "wage": {
        "amount": "79.2",
        "type": "fixed"
      }
    },
    {
      "id": 346,
      "chat_id": 605,
      "contract": {
        "id": 277,
        "days_to_expire": 61,
        "end_date": "2025-07-29",
        "job_driver_id": 346,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2025-06-05",
        "state": "pending",
        "wages": [
          {
            "id": 608,
            "kind": "bank_holiday",
            "rate": "61.0"
          }
        ]
      },
      "driver": {
        "id": 1190,
        "first_name": "Dale",
        "last_name": "Kirlin",
        "profile_id": 552,
        "referral_code": "876819"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-05-29T11:02:01.674Z",
      "wage": {
        "amount": "54.9",
        "type": "fixed"
      }
    }
  ]
}