Accept a pending contract
Jobs > Contracts
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.eyJzdWIiOiIxNTciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzIsImV4cCI6MTc1NTg1ODE3MiwianRpIjoiMTQzYWZlMDUtZTliZi00MTBmLWE2MmYtNDVkNjY4YjE4NWM4In0.puhHN_9lhIpViaNOTTS6kGS7AlJcnUBUsjU18Gh6pP4
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/"69831e6d7960e7719b61ccde260e6014"
cache-control: max-age=0, private, must-revalidate
x-request-id: f968e75a-fa22-4251-9da1-133fb5f5828e
x-runtime: 0.049500
content-length: 171
Body
{
"contract": {
"id": 51,
"days_to_expire": 31,
"end_date": "2025-08-23",
"job_driver_id": 55,
"policy_schema": {
"markable_as_ended": true
},
"start_date": "2025-07-22",
"state": "active"
}
}