Jobs > Contracts

Reject a pending contract

POST reject pending contract

Endpoint

POST /api/v1/jobs/:job_id/contracts/:id/reject

Request

Route

POST /api/v1/jobs/40/contracts/54/reject

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjQiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MDgsImV4cCI6MTc0NTA1NjkwOCwianRpIjoiODI4ZGFiOWYtMjA2OC00NDExLWI4YWUtMmQ5NDFlYjQyYjdlIn0.f9R9EuSLCCuY4sV8zCTZyMS_pyCgY_GqqJg1DIPsO74
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/"5903df01adfd79c0bb4af1465ebe149c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 30fd70ca-0819-4a2d-94ae-1ad69435dc60
x-runtime: 0.029623
content-length: 174

Body

{
  "contract": {
    "id": 54,
    "days_to_expire": 31,
    "end_date": "2025-04-20",
    "job_driver_id": 58,
    "policy_schema": {
      "markable_as_ended": false
    },
    "start_date": "2025-03-19",
    "state": "rejected"
  }
}