Jobs > Contracts

Mark as ended a confirmed contract

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.eyJzdWIiOiIxNzMiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MDksImV4cCI6MTc0NTA1NjkwOSwianRpIjoiNTRmMDQ0YTQtYTU5Mi00OTE1LTg1NDktMjMyMDJjOWM5M2U2In0.ReSHzYtfdtS_YOSZkTKAGA2ZZM27Iv7Y-QW-SuewzYY
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/"15cf144f23611f721670cbee9b8c337a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7199ee0e-c045-439e-83f2-688526b07e04
x-runtime: 0.010079
content-length: 173

Body

{
  "contract": {
    "id": 57,
    "days_to_expire": -3,
    "end_date": "2025-03-17",
    "job_driver_id": 61,
    "policy_schema": {
      "markable_as_ended": false
    },
    "start_date": "2025-03-13",
    "state": "expired"
  }
}