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.eyJzdWIiOiIxODI0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTkzLCJleHAiOjE3NDAxNDM1OTMsImp0aSI6Ijc3NzZiNmI1LWM3ZjEtNDRiNy05NDYxLWYwNzljMjA5ZTk2NyJ9.szliC3rKdMbqAWnGBpY176YC4iLoJSaUm9igyw8s2zw
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/"770ccf16922d60f8db1b032c79a1c352"
cache-control: max-age=0, private, must-revalidate
x-request-id: c6e5b42c-6298-47ba-b666-25c80e98f5e9
x-runtime: 0.016214
content-length: 379

Body

{
  "document": {
    "id": 5,
    "file": {
      "id": 30,
      "signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MzIsInB1ciI6ImJsb2JfaWQifX0=--b59537dc3d0aa992d0558d7186588f94b59ef352",
      "byte_size": 596,
      "filename": "test_image.png",
      "url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzIsInB1ciI6ImJsb2JfaWQifX0=--b59537dc3d0aa992d0558d7186588f94b59ef352/test_image.png"
    },
    "name": "et"
  }
}