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/43/contracts/57/mark_as_ended
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNzMiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDg1MTY0OTgsImV4cCI6MTc1MTEwODQ5OCwianRpIjoiZDljMzdiNmYtMDYwOC00MjgxLTlkNTAtZWIxYTNiMmY1Y2Y1In0.dPEwKC8MNeZfM5Gr6q2EiznS1A8to_8rzvEqWe3b8aY
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/"66f43e2473adaacdcbc9cc6723a77f01"
cache-control: max-age=0, private, must-revalidate
x-request-id: 698b55aa-7609-4beb-94e9-9532b9a02e4d
x-runtime: 0.008564
content-length: 173
Body
{
"contract": {
"id": 57,
"days_to_expire": -3,
"end_date": "2025-05-26",
"job_driver_id": 61,
"policy_schema": {
"markable_as_ended": false
},
"start_date": "2025-05-22",
"state": "expired"
}
}