Documents

Delete a profile document

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.eyJzdWIiOiIxODY1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDc5LCJleHAiOjE3NjM1NDI0NzksImp0aSI6IjQxYjg1NjkyLWI4MmItNGVlYS1iZGY5LWQ0NjIzOGQ1ZTBlNyJ9.wfuYemQJzdZ6CV8AZm2Of9NLTOoyhCyZ8601bmT_sSo
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/"eecb37874ad2b47d06547627ba3cb621"
cache-control: max-age=0, private, must-revalidate
x-request-id: fbccf22d-75ed-4afb-be4d-fe1c60473a26
x-runtime: 0.015799
content-length: 387

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": "doloremque"
  }
}