Blocked Drivers

Create blocked driver(block)

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.eyJzdWIiOiIxNiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MDk1MDQzMCwiZXhwIjoxNzYzNTQyNDMwLCJqdGkiOiI5MDQ4NWJjNi1kMWEyLTRkNTgtODc2ZC02NzJiYzA2NmFiYTcifQ.YJ9puYCVwo0vLIGzq51iwRa6Bnfy8Da7R8gWYSH-xhg
Host: example.org
Cookie: 

Body

{
  "blocked_driver": {
    "reason": "Esse omnis ratione est.",
    "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/"5415bd992a976ac7ba9ffdb27e9fc470"
cache-control: max-age=0, private, must-revalidate
x-request-id: 33377bc2-20f1-4d54-acb8-4bfbf0d6f573
x-runtime: 0.033671
content-length: 232

Body

{
  "blocked_driver": {
    "id": 1,
    "blocked_at": "2025-10-20T08:53:50.695Z",
    "driver": {
      "id": 17,
      "first_name": "Leif",
      "last_name": "Baumbach",
      "profile_id": null,
      "referral_code": "561122"
    },
    "globally_blocked": false,
    "reason": "Esse omnis ratione est."
  }
}