Delete Requests

Reject delete request

POST reject delete request

Endpoint

POST /api/v1/delete_requests/:id/reject

Request

Route

POST /api/v1/delete_requests/10/reject

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyODciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTcsImV4cCI6MTc0MDE0MzU1NywianRpIjoiNTkxN2FjNzEtMmJiOC00N2Q0LTk4N2ItYTdkYTdjZWNkNTMxIn0.n1gIPg-tydRTGyn48vjFQ7eC9dt87k0dQnOcYXtHlkk
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/"13208ce9cc354f4d10b0f8f95c7e433d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9512c5ba-82d7-4c02-a4a9-0a52138a0064
x-runtime: 0.022441
content-length: 216

Body

{
  "delete_request": {
    "id": 10,
    "created_at": "2025-01-22T13:12:37.295Z",
    "reason": "Quia nulla nesciunt et.",
    "status": "rejected",
    "user": {
      "id": 286,
      "admin": false,
      "image": null,
      "referral_code": "804466",
      "title": "Donald Crona"
    }
  }
}