Jobs > Drivers

Accept job driver

POST accept job driver

Endpoint

POST /api/v1/jobs/:job_id/job_drivers/:id/accept

Request

Route

POST /api/v1/jobs/352/job_drivers/376/accept

Headers

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

Body

{
}

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/"58cc38967ae849afc53cbf794e872927"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2b0ea4d4-aa5f-4c93-bfc4-b33326670858
x-runtime: 0.042725
content-length: 188

Body

{
  "job_driver": {
    "id": 376,
    "driver": {
      "id": 1232,
      "first_name": "Allie",
      "last_name": "Rippin",
      "profile_id": 567,
      "referral_code": "006846"
    },
    "kind": "accepted",
    "updated_at": "2025-01-22T13:12:58.702Z"
  }
}