Delete Requests

Confirm delete request

POST confirm delete request

Endpoint

POST /api/v1/delete_requests/:id/confirm

Request

Route

POST /api/v1/delete_requests/7/confirm

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyODciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDg1MTY1MDAsImV4cCI6MTc1MTEwODUwMCwianRpIjoiOWY0MTRhZWMtNWViNS00NjZiLWJjZDUtMmQ4N2VkZDBiMjVlIn0.0nEsCu3RqATzYS_Se7B3zpAfrlFGStxBaj8AYsK6c-w
Host: example.org
Cookie: 

Body

{
}

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/"a33939bf41aae11705add31b51aff1b5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5cc864c7-83bd-4809-b896-4176a38d8dea
x-runtime: 0.015535
content-length: 196

Body

{
  "delete_request": {
    "id": 286,
    "email": "thad.gutkowski+driver@example.com",
    "first_name": "Thad",
    "last_name": "Gutkowski",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "553716",
    "role": "driver"
  }
}