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.eyJzdWIiOiIyODAiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTcsImV4cCI6MTc0MDE0MzU1NywianRpIjoiZDkzNTk3YWYtM2FjZS00Mjg2LThlZWEtYzk4MzNjNTMxNWYxIn0.esU97EWLo2Gm3E6gvJojtiRxZ4cqfkEsqQ-79jR-_PA
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/"1cd22ebc1adb8a18274fe5fdb3c3118f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5584d874-d2d7-4277-bd74-fce90ba66b53
x-runtime: 0.015241
content-length: 192

Body

{
  "delete_request": {
    "id": 279,
    "email": "maire.erdman+driver@example.com",
    "first_name": "Maire",
    "last_name": "Erdman",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "715128",
    "role": "driver"
  }
}