Create blocked driver(block)
Blocked Drivers
POST create blocked driver
Endpoint
POST /api/v1/blocked_drivers
Parameters
| Name | Description |
|---|---|
| blocked_driver[driver_id] required | Blocked driver driver |
| blocked_driver[reason] required | Blocked driver reason |
Request
Route
POST /api/v1/blocked_drivers
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MzYyNjM1OSwiZXhwIjoxNzY2MjE4MzU5LCJqdGkiOiI3ZTA3YzFjMi0zZGY1LTRiN2EtYjAyMy1hZTk1YmQxNWRkODIifQ.jBZvMSBvTR2zFXuhnIJrVbhxZR3Nb73ouW16E8Zqo14
Host: example.org
Cookie:
Body
{
"blocked_driver": {
"reason": "Corporis dolorem dolor itaque.",
"driver_id": 17
}
}
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/"a860a081a8a6ed9acfda9de2525459de"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9801cba1-c51f-43a1-9de1-3c383696bfe3
x-runtime: 0.035945
content-length: 266
Body
{
"blocked_driver": {
"id": 1,
"blocked_at": "2025-11-20T08:12:39.772Z",
"driver": {
"id": 17,
"financial_company_id": null,
"first_name": "Emil",
"last_name": "Collier",
"profile_id": null,
"referral_code": "615086"
},
"globally_blocked": false,
"reason": "Corporis dolorem dolor itaque."
}
}