Delete a profile document
Documents
DELETE destroy document
Endpoint
DELETE /api/v1/users/profile/documents/:id
Request
Route
DELETE /api/v1/users/profile/documents/5
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODU1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTU0LCJleHAiOjE3NDUwNTY5NTQsImp0aSI6IjljNWQyNWFmLWQxNmQtNGUwYS1hNzBiLWI1MjZiZTQ5MjY0MyJ9.NK7nL45WT82B0XWGEBcyPQp2CFzA52n_7OYqo8meMWM
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/"6b4944490811a6ddabba0970b755c3b4"
cache-control: max-age=0, private, must-revalidate
x-request-id: b42bc9ac-64a2-47f4-98c7-49640c50d7ad
x-runtime: 0.019495
content-length: 382
Body
{
"document": {
"id": 5,
"file": {
"id": 31,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MzUsInB1ciI6ImJsb2JfaWQifX0=--0d9085796d23cfba12c86d4907c6332b86f7b29a",
"byte_size": 596,
"filename": "test_image.png",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzUsInB1ciI6ImJsb2JfaWQifX0=--0d9085796d23cfba12c86d4907c6332b86f7b29a/test_image.png"
},
"name": "sequi"
}
}