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.eyJzdWIiOiIxNiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0MjQ2NDkwMywiZXhwIjoxNzQ1MDU2OTAzLCJqdGkiOiJkZmE2MjZlNS1kZGIwLTRkZjctYTZhNy04MzJjMGYxNjhkZWMifQ.SiKo8PYpf2KkbIUSpBe7Tyxz5tYkaGXB4bqqKdbnTC4
Host: example.org
Cookie: 

Body

{
  "blocked_driver": {
    "reason": "Dolorum rem veniam aperiam.",
    "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/"2056caaa664478d8e448629a7745914a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 53099221-5969-4a03-8e28-5000b3167556
x-runtime: 0.041674
content-length: 233

Body

{
  "blocked_driver": {
    "id": 1,
    "blocked_at": "2025-03-20T10:01:43.235Z",
    "driver": {
      "id": 17,
      "first_name": "Clyde",
      "last_name": "Torp",
      "profile_id": null,
      "referral_code": "495488"
    },
    "globally_blocked": false,
    "reason": "Dolorum rem veniam aperiam."
  }
}