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/40/contracts/54/accept
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzNjQsImV4cCI6MTc2NjIxODM2NCwianRpIjoiNjg0NmNiNGItYTE0Ni00NzlhLTkyMmMtOTQ1MWE5ODUyZmZjIn0.WG6a5srHzLJp3VRYPrhtadUUFg2eMPTXm-qlDIQcZ24
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/"a5f2215c8a122b2f592f2b9cd37f29ec"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7d7fce61-6670-4c2d-a7fe-fd582709733e
x-runtime: 0.040695
content-length: 171
Body
{
"contract": {
"id": 54,
"days_to_expire": 30,
"end_date": "2025-12-20",
"job_driver_id": 61,
"policy_schema": {
"markable_as_ended": true
},
"start_date": "2025-11-19",
"state": "active"
}
}