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.eyJzdWIiOiIyODciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MTIsImV4cCI6MTc0NTA1NjkxMiwianRpIjoiYTllOTYxYjYtNWJmMS00NjBmLTg2ZjctM2EwY2Q3YjU4YzZiIn0.KWd0JYbNwQwqqrg2SUjzWRI0WXdHiXOsH-mBA5WiNZ8
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/"c5e52369db02c278379b2e0cfcb476a5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 39829042-9551-4230-8bff-6c472cdf7438
x-runtime: 0.021897
content-length: 196

Body

{
  "delete_request": {
    "id": 286,
    "email": "andrea.effertz+driver@example.com",
    "first_name": "Andrea",
    "last_name": "Effertz",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "662054",
    "role": "driver"
  }
}