Reject a pending contract
Jobs > Contracts
POST reject pending contract
Endpoint
POST /api/v1/jobs/:job_id/contracts/:id/reject
Request
Route
POST /api/v1/jobs/32/contracts/49/reject
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTEiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTQsImV4cCI6MTc0MDE0MzU1NCwianRpIjoiODY5YWI2NjktMWZiNS00ZjMyLThjNzYtOTE3NTQxZjRhNjM1In0.zckiW-AhoNh1GWJEVvo3h0bMdcHYLQsqlHGTbzQVhok
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/"0415acc2c7c012642b48977e75e61d9a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0394fddb-1109-4d59-bba0-3183978d9030
x-runtime: 0.115140
content-length: 174
Body
{
"contract": {
"id": 49,
"days_to_expire": 31,
"end_date": "2025-02-22",
"job_driver_id": 53,
"policy_schema": {
"markable_as_ended": false
},
"start_date": "2025-01-21",
"state": "rejected"
}
}