Jobs > Contracts

Accept a pending contract

POST accept pending contract

Endpoint

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

Request

Route

POST /api/v1/jobs/37/contracts/51/accept

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjA5NTA0MzUsImV4cCI6MTc2MzU0MjQzNSwianRpIjoiNTAzNmRjNGMtNmE4Ni00NDYzLWEwOTMtMTMyY2VjNWIxMmRkIn0.o62Be_GeTfXsrutnqFdZ_-fIM6Y3ivgN08SO7elS5-4
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/"a6ab365c819d7aa32d73b38ca09f1a18"
cache-control: max-age=0, private, must-revalidate
x-request-id: 1ffa4e14-3fa1-4e4d-915e-22d2b8eec0ce
x-runtime: 0.042967
content-length: 171

Body

{
  "contract": {
    "id": 51,
    "days_to_expire": 31,
    "end_date": "2025-11-20",
    "job_driver_id": 55,
    "policy_schema": {
      "markable_as_ended": true
    },
    "start_date": "2025-10-19",
    "state": "active"
  }
}