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/364/job_drivers/384/wages

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjcyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjA2LCJleHAiOjE3NTU4NTgyMDYsImp0aSI6IjQxMTIxMDAxLWYwODYtNGFjZC1hMTM3LTYwYjlmNGU3YTM1NCJ9.4-lVlJgvey5Keb_zwAwyLtkkx1_tLnr9Ku34RwA_jKU
Host: example.org
Cookie: 

Body

{
  "job_driver": {
    "contracts_attributes": {
      "0": {
        "id": 306,
        "wages_attributes": {
          "0": {
            "kind": "bank_holiday",
            "rate": 50
          },
          "1": {
            "id": 670,
            "kind": "sunday",
            "rate": 75,
            "driver_rate": 44
          },
          "2": {
            "id": 671,
            "kind": "saturday",
            "rate": 200,
            "driver_rate": 150
          }
        }
      }
    },
    "timesheet_ids": [
      165
    ]
  }
}

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/"1686498e7acbce1ee53319b57feae1e5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4a679720-aafa-4244-b640-3f315e04b7fc
x-runtime: 0.057702
content-length: 189

Body

{
  "job_driver": {
    "id": 384,
    "driver": {
      "id": 1271,
      "first_name": "Mikel",
      "last_name": "Gutmann",
      "profile_id": 578,
      "referral_code": "329331"
    },
    "kind": "accepted",
    "updated_at": "2025-07-23T10:23:26.043Z"
  }
}