Create blocked driver(block)
Blocked Drivers
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.eyJzdWIiOiIxNiIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTczNzU1MTU0OSwiZXhwIjoxNzQwMTQzNTQ5LCJqdGkiOiI5OTczMGNjYi02YmRjLTRjYjMtYmUyOS02MmNlODQ4ZTNmNDUifQ.qa-sSTK0jk67qqahUAM5XM-dOJ0M1Llj0_BKTwE87po
Host: example.org
Cookie:
Body
{
"blocked_driver": {
"reason": "Molestias eum qui iste.",
"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/"6a43a4540110d46baac362f00c468bff"
cache-control: max-age=0, private, must-revalidate
x-request-id: 785280da-91c3-4675-9180-58e53a95209a
x-runtime: 0.043991
content-length: 229
Body
{
"blocked_driver": {
"id": 1,
"blocked_at": "2025-01-22T13:12:29.550Z",
"driver": {
"id": 17,
"first_name": "Otha",
"last_name": "Upton",
"profile_id": null,
"referral_code": "942811"
},
"globally_blocked": false,
"reason": "Molestias eum qui iste."
}
}