Create delete request by current operator
Delete Requests
POST create delete request
Endpoint
POST /api/v1/delete_requests
Parameters
Name | Description |
---|---|
delete_request[reason] required | Delete request reason |
Request
Route
POST /api/v1/delete_requests
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyNzciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTcsImV4cCI6MTc0MDE0MzU1NywianRpIjoiZDRkNmU2ZjMtMjIxMC00YmRiLWE0MDUtMTUzYTliMTQwOTM1In0.tU0SETx9_lu2mKuKQS6s6nfMMUMjp38NW9-peCFMonQ
Host: example.org
Cookie:
Body
{
"delete_request": {
"reason": "Sit beatae expedita ab."
}
}
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/"8298dd843e299069d13ae9cbba448777"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7c8a80a6-77bd-4dc1-8842-40489bdf8bca
x-runtime: 0.008508
content-length: 222
Body
{
"delete_request": {
"id": 6,
"created_at": "2025-01-22T13:12:37.165Z",
"reason": "Sit beatae expedita ab.",
"status": "pending",
"user": {
"id": 277,
"admin": false,
"contact_phone_number": null,
"image": null,
"title": "Margret Daugherty"
}
}
}