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.eyJzdWIiOiIzNDEiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTgsImV4cCI6MTc0MDE0MzU1OCwianRpIjoiNzZkZmU4MWItZjJiZC00MDBhLTg4NjAtMzcxYTdmOGQ3N2MyIn0.lXsCFrnuH6G7z3-kturCMeW9U0jLhPvYHUvJXZKvOCc
Host: example.org
Cookie: 

Body

{
  "favourite_driver": {
    "job_driver_id": 94
  }
}

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/"ece801858ecf27609fe2d21389d29214"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4f24c505-b3c6-4b32-95f4-5d13dad145a8
x-runtime: 0.015218
content-length: 185

Body

{
  "favourite_driver": {
    "id": 8,
    "chat_id": 187,
    "driver": {
      "id": 342,
      "first_name": "Raul",
      "last_name": "Johnston",
      "profile_id": 101,
      "referral_code": "252755"
    },
    "job_name": "Manufacturing Associate"
  }
}