Mark as ended a confirmed contract
Jobs > Contracts
POST mark_as_ended confirmed contract
Endpoint
POST /api/v1/jobs/:job_id/contracts/:id/mark_as_ended
Request
Route
POST /api/v1/jobs/46/contracts/60/mark_as_ended
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODMiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzNjUsImV4cCI6MTc2NjIxODM2NSwianRpIjoiZWI0ZmM0YzYtNjhkMC00MzYyLTllMjktOTY1ZDA5OTg2ZWNhIn0.3BVBx7RLzsyRicT5otYlzJq932lOgLRM_kEYqAhwy78
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/"71a51f7a2745c784b70028ed2336920e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 68659951-05ff-49ba-8f96-c453609f7d96
x-runtime: 0.009552
content-length: 173
Body
{
"contract": {
"id": 60,
"days_to_expire": -3,
"end_date": "2025-11-17",
"job_driver_id": 67,
"policy_schema": {
"markable_as_ended": false
},
"start_date": "2025-11-13",
"state": "expired"
}
}