Create blocked driver(block)
Blocked Drivers
POST create blocked driver(admin)
Endpoint
POST /api/v1/blocked_drivers
Parameters
Name | Description |
---|---|
blocked_driver[driver_id] required | Blocked driver driver |
blocked_driver[reason] required | Blocked driver reason |
company_id required | Company id |
Request
Route
POST /api/v1/blocked_drivers
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyMCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MDk1MDQzMCwiZXhwIjoxNzYzNTQyNDMwLCJqdGkiOiJhNmU3NjVlNy1hODI3LTQ5YzktOTIyNC04N2U0ZjRiNTQ0ZDEifQ.DX69_YEEFss5QWuI9j8Rdc7hdvcEMeX2WhB9D3HnETU
Host: example.org
Cookie:
Body
{
"blocked_driver": {
"reason": "Ea ex qui asperiores.",
"driver_id": 18,
"company_id": 2
}
}
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/"e21cfb3e56df0a684338efcc9f20fdf4"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5fc50b7a-4908-4cd9-8164-4e1daa46d47f
x-runtime: 0.008772
content-length: 232
Body
{
"blocked_driver": {
"id": 2,
"blocked_at": "2025-10-20T08:53:50.740Z",
"driver": {
"id": 18,
"first_name": "Jonas",
"last_name": "Jaskolski",
"profile_id": null,
"referral_code": "950530"
},
"globally_blocked": false,
"reason": "Ea ex qui asperiores."
}
}