Jobs > Drivers

Update (or create) job driver wages (admin)

PATCH wages

Endpoint

PATCH /api/v1/jobs/:job_id/job_drivers/:id/wages

Parameters

Name Description
job_driver[contracts_attributes] required Job driver contracts attributes
job_driver[timesheet_ids] Job driver timesheet ids

Request

Route

PATCH /api/v1/jobs/380/job_drivers/403/wages

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMzEyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2MzkzLCJleHAiOjE3NjYyMTgzOTMsImp0aSI6Ijk0NDk2ZTAyLThjODItNDU3My05MjdhLTU0MjA3ZTIyMjU5MyJ9.PEA5jE7saSdqawg9fcpoh-770u0IflXsHMSwxrN78Ew
Host: example.org
Cookie: 

Body

{
  "job_driver": {
    "contracts_attributes": {
      "0": {
        "id": 322,
        "wages_attributes": {
          "0": {
            "kind": "bank_holiday",
            "rate": 50
          },
          "1": {
            "id": 702,
            "kind": "sunday",
            "rate": 75,
            "driver_rate": 44
          },
          "2": {
            "id": 703,
            "kind": "saturday",
            "rate": 200,
            "driver_rate": 150
          }
        }
      }
    },
    "timesheet_ids": [
      181
    ]
  }
}

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
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"877b536df44a98e74a435d687e7bc3e4"
cache-control: max-age=0, private, must-revalidate
x-request-id: e6894ffd-7cf1-4eb9-a601-e58f9c2cc07b
x-runtime: 0.039107
content-length: 232

Body

{
  "job_driver": {
    "id": 403,
    "currency": "GBP",
    "driver": {
      "id": 1311,
      "financial_company_id": null,
      "first_name": "Rob",
      "last_name": "Koelpin",
      "profile_id": 597,
      "referral_code": "635346"
    },
    "kind": "accepted",
    "updated_at": "2025-11-20T08:13:13.398Z"
  }
}