Create favourite driver(block)
Favourite Drivers
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.eyJzdWIiOiIzNjAiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjA5NTA0NDAsImV4cCI6MTc2MzU0MjQ0MCwianRpIjoiYzYxMWUyMDgtODJkMS00ZDM4LTliMzAtNDJkZDQyY2E0OWRlIn0.ors-f4MBySMaLF-Ow3IDtO9EvKxFAbz7SwdR9AKyhrA
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/"a12f7a9e9dc1122afebdf0e016379c0d"
cache-control: max-age=0, private, must-revalidate
x-request-id: f03000b5-1965-4f24-a486-44a82ec837e9
x-runtime: 0.015298
content-length: 181
Body
{
"favourite_driver": {
"id": 8,
"chat_id": 199,
"driver": {
"id": 361,
"first_name": "Althea",
"last_name": "Kris",
"profile_id": 108,
"referral_code": "291888"
},
"job_name": "Manufacturing Planner"
}
}