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.eyJzdWIiOiIxNTciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MDgsImV4cCI6MTc0NTA1NjkwOCwianRpIjoiZmUwNDkxYjAtN2E4MC00NjZmLThmMWUtMDhhM2ZlMDRiZTY4In0.g1szr5_kBlt83oXY2OIsmvmsdCxnT9Mzi42UHTOuaKs
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/"c8e404bd198471e2849ef03ca3ccdf44"
cache-control: max-age=0, private, must-revalidate
x-request-id: dfcd4159-4b90-4090-810a-8afc0667ddd1
x-runtime: 0.042412
content-length: 171
Body
{
"contract": {
"id": 51,
"days_to_expire": 31,
"end_date": "2025-04-20",
"job_driver_id": 55,
"policy_schema": {
"markable_as_ended": true
},
"start_date": "2025-03-19",
"state": "active"
}
}