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.eyJzdWIiOiIxNiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc1MzI2NjE2NywiZXhwIjoxNzU1ODU4MTY3LCJqdGkiOiI5MzhiZWM5OS1iOGNiLTQ3ODItOTVlNi0wMTdlNmU5MWVjMzQifQ.USFpXh1RPUGqu4t0TqhygRycpsCY4qRbRNxV-KCKVmA
Host: example.org
Cookie: 

Body

{
  "blocked_driver": {
    "reason": "Unde et fugiat vel.",
    "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/"d4e7c09be84ceaf613aa81ffa8051e0a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 28fbeb85-ea9a-4bfb-b663-be61e998bbb3
x-runtime: 0.030306
content-length: 237

Body

{
  "blocked_driver": {
    "id": 1,
    "blocked_at": "2025-07-23T10:22:47.513Z",
    "driver": {
      "id": 17,
      "first_name": "Meridith",
      "last_name": "Runolfsdottir",
      "profile_id": null,
      "referral_code": "497485"
    },
    "globally_blocked": false,
    "reason": "Unde et fugiat vel."
  }
}