Favourite Drivers

Create favourite driver(block)

POST create favourite driver

Endpoint

POST /api/v1/favourite_drivers

Parameters

Name Description
favourite_driver[job_driver_id] required Favourite driver job driver

Request

Route

POST /api/v1/favourite_drivers

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzNjEiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MTMsImV4cCI6MTc0NTA1NjkxMywianRpIjoiNTA1M2U0YjctZDE5Ny00ZDQwLWFlYTAtODkyNWY2Yjc0YmVjIn0.wgN5kOD9BzAwwlpiMHCefw8-pVeU7PCBCGE2rbbXRu8
Host: example.org
Cookie: 

Body

{
  "favourite_driver": {
    "job_driver_id": 99
  }
}

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/"79ec039b5edb1f32f5308d48ac6db585"
cache-control: max-age=0, private, must-revalidate
x-request-id: b607fb83-e26c-45b9-8615-587bcf292786
x-runtime: 0.013867
content-length: 185

Body

{
  "favourite_driver": {
    "id": 8,
    "chat_id": 201,
    "driver": {
      "id": 362,
      "first_name": "Curt",
      "last_name": "Hudson",
      "profile_id": 108,
      "referral_code": "422680"
    },
    "job_name": "Construction Orchestrator"
  }
}