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.eyJzdWIiOiIxNjQiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzIsImV4cCI6MTc1NTg1ODE3MiwianRpIjoiNTdiYzEzMWYtYTc0ZC00MmMxLTk3Y2ItNDE3NTBhMTIxNjQ4In0.9MG1yAFtekuhJ43wVc7MvHu2uLNShR-_arvd7xhMnME
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/"0073a4a3e12c89eb80d0ba65db473093"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3d3904cc-624d-4c96-bfbb-c76c7d3ca51e
x-runtime: 0.039814
content-length: 174

Body

{
  "contract": {
    "id": 54,
    "days_to_expire": 31,
    "end_date": "2025-08-23",
    "job_driver_id": 58,
    "policy_schema": {
      "markable_as_ended": false
    },
    "start_date": "2025-07-22",
    "state": "rejected"
  }
}