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.eyJzdWIiOiIzNjAiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzgsImV4cCI6MTc1NTg1ODE3OCwianRpIjoiM2MxZTZjODAtNGUxMC00MGIyLWE5ZWUtNjJkMzRlMDE5YjIwIn0.YeeXUIXb6TaHDk1EfpDxCxqY_yq4fAub6BaE0hNMlaI
Host: example.org
Cookie: 

Body

{
  "favourite_driver": {
    "job_driver_id": 98
  }
}

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/"7b3804733b6e15c3845a4b5a027ac456"
cache-control: max-age=0, private, must-revalidate
x-request-id: 88e6c1c0-32bc-4820-a536-3f6e26b340f1
x-runtime: 0.018246
content-length: 178

Body

{
  "favourite_driver": {
    "id": 8,
    "chat_id": 199,
    "driver": {
      "id": 361,
      "first_name": "Chas",
      "last_name": "Durgan",
      "profile_id": 108,
      "referral_code": "247490"
    },
    "job_name": "Dynamic IT Planner"
  }
}