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.eyJzdWIiOiIyMCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTczNzU1MTU0OSwiZXhwIjoxNzQwMTQzNTQ5LCJqdGkiOiIyYWQ4ZGZkNS0zZWJiLTRmOTgtYWU3NC03OTFmZTJlYjcxODYifQ.bVVdHFtBQEyw326kBb_HUuMvZaRUwCisYxEYzB-qi64
Host: example.org
Cookie: 

Body

{
  "blocked_driver": {
    "reason": "Tempore facere dolor sequi.",
    "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/"dc2121fc9ad14ebc5ac8018e6c19ffac"
cache-control: max-age=0, private, must-revalidate
x-request-id: 13617897-410e-4efc-aa11-659f347a446d
x-runtime: 0.011229
content-length: 238

Body

{
  "blocked_driver": {
    "id": 2,
    "blocked_at": "2025-01-22T13:12:29.604Z",
    "driver": {
      "id": 18,
      "first_name": "Earlie",
      "last_name": "Schimmel",
      "profile_id": null,
      "referral_code": "852969"
    },
    "globally_blocked": false,
    "reason": "Tempore facere dolor sequi."
  }
}