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/35/contracts/52/mark_as_ended
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjAiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTUsImV4cCI6MTc0MDE0MzU1NSwianRpIjoiYjUyMjkzMmItYzIxOC00Mzk4LTgzMGYtZjIwM2FkY2U1MGQzIn0.FFSVnYsoiYByIla2nX_47J1xGRzwjOLplgrzOxJHSBU
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/"5d5c7109d3ffe11570f7e7d2942ea4e6"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4ac60377-7439-4ac8-9f6c-34fe85d520d9
x-runtime: 0.011497
content-length: 173
Body
{
"contract": {
"id": 52,
"days_to_expire": -3,
"end_date": "2025-01-19",
"job_driver_id": 56,
"policy_schema": {
"markable_as_ended": false
},
"start_date": "2025-01-15",
"state": "expired"
}
}