Blocked Drivers

Create blocked driver(block)

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.eyJzdWIiOiIyMCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MzYyNjM1OSwiZXhwIjoxNzY2MjE4MzU5LCJqdGkiOiJkNTVlZGMzNC1kNjRlLTRmYjItODk0NC01ZDBmNzFiMTM3ZDEifQ.dZoADy5UlXbNJDyZmjXwurzvFmJ3DE54mH5tUHXUtLo
Host: example.org
Cookie: 

Body

{
  "blocked_driver": {
    "reason": "Eius sed sit ut.",
    "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/"fc7e5e1b59415b517157ed372d774cf2"
cache-control: max-age=0, private, must-revalidate
x-request-id: 44fc2a53-741d-48b3-9ecf-2eabe8657071
x-runtime: 0.009960
content-length: 252

Body

{
  "blocked_driver": {
    "id": 2,
    "blocked_at": "2025-11-20T08:12:39.821Z",
    "driver": {
      "id": 18,
      "financial_company_id": null,
      "first_name": "Davida",
      "last_name": "Kulas",
      "profile_id": null,
      "referral_code": "563770"
    },
    "globally_blocked": false,
    "reason": "Eius sed sit ut."
  }
}