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.eyJzdWIiOiIyMCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc1MzI2NjE2NywiZXhwIjoxNzU1ODU4MTY3LCJqdGkiOiIwMTZlMzNhZS1mMjg1LTQ3NGQtOWU4My1hMjI0NmRlZDFmYzMifQ.SOK7MC3FtRriyIhPKS6ppo1CgX0G9qx0cL8pC5wtVAs
Host: example.org
Cookie: 

Body

{
  "blocked_driver": {
    "reason": "Ut sequi dolorem rerum.",
    "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/"56f6f8d62ac41fa8be17635909a7158a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 56b8c6b3-a5f5-4dd3-94dd-98fe275909cf
x-runtime: 0.013328
content-length: 232

Body

{
  "blocked_driver": {
    "id": 2,
    "blocked_at": "2025-07-23T10:22:47.574Z",
    "driver": {
      "id": 18,
      "first_name": "Cheyenne",
      "last_name": "Veum",
      "profile_id": null,
      "referral_code": "140115"
    },
    "globally_blocked": false,
    "reason": "Ut sequi dolorem rerum."
  }
}