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.eyJzdWIiOiIxNTciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDg1MTY0OTcsImV4cCI6MTc1MTEwODQ5NywianRpIjoiMTYwZTQ0ZDAtNjhhNC00ZTJkLTkyNDctNTg0MWY1Mzg1NWUxIn0.pwEGVF465MPOWgHnk1dkIumGWlvpX_X4ds4UCOlG__k
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/"e06306682f9c7c9eb5c8f785f627cd8e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 513d01a1-d5d5-46c0-a30b-fec6f9a49c4a
x-runtime: 0.058138
content-length: 171
Body
{
"contract": {
"id": 51,
"days_to_expire": 31,
"end_date": "2025-06-29",
"job_driver_id": 55,
"policy_schema": {
"markable_as_ended": true
},
"start_date": "2025-05-28",
"state": "active"
}
}