Jobs > Contracts

Accept a pending contract

POST accept pending contract

Endpoint

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

Request

Route

POST /api/v1/jobs/30/contracts/47/accept

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTMsImV4cCI6MTc0MDE0MzU1MywianRpIjoiMTlkMTZkZDUtNDZmNy00ZGYxLTkzNmQtYjNkMTRhNDViZGIxIn0.dAARnXgzj-lGLp_gZfO2SV-d7rAb8qhAL_UOBnCZOAA
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/"e13ea217ec5347753bbc6602e2c5c9ee"
cache-control: max-age=0, private, must-revalidate
x-request-id: 913fd38b-30db-43b3-b169-c8408ab2472b
x-runtime: 0.326601
content-length: 171

Body

{
  "contract": {
    "id": 47,
    "days_to_expire": 31,
    "end_date": "2025-02-22",
    "job_driver_id": 51,
    "policy_schema": {
      "markable_as_ended": true
    },
    "start_date": "2025-01-21",
    "state": "active"
  }
}