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.eyJzdWIiOiIxODc5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTQxLCJleHAiOjE3NTExMDg1NDEsImp0aSI6IjU4NGY2YzljLTBlYTctNDBkOS05ODYzLTU4N2YzMjI1MGQ4NiJ9.ZuLjinXXRyvCzCO2_bpWtO_Iip-UDljvyIsta3jlPUQ
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/"56b78e82313b6097f36bd475ea2c1e6f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 83adc416-e38c-43fe-8f9f-8a601a3572a5
x-runtime: 0.016862
content-length: 380
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": "sit"
}
}