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.eyJzdWIiOiIxODg2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjI5LCJleHAiOjE3NTU4NTgyMjksImp0aSI6ImZlN2M3MTIxLTVjZjItNGU0Yy1iODcyLTczMDhhNTNjZTVkNyJ9.0WcVAMh5RXn30egVGzzJGI335cm5AheX4UPI4zIMCTQ
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/"f09ab2befb07b7f9b321f10c32659ae5"
cache-control: max-age=0, private, must-revalidate
x-request-id: bcf0d516-2b8d-40eb-b7c5-37da002f3157
x-runtime: 0.018740
content-length: 387

Body

{
  "document": {
    "id": 5,
    "file": {
      "id": 31,
      "signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MzUsInB1ciI6ImJsb2JfaWQifX0=--ad0cc7119c768d1091fc6a0779b9bb75554c602e",
      "byte_size": 596,
      "filename": "test_image.png",
      "url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MzUsInB1ciI6ImJsb2JfaWQifX0=--ad0cc7119c768d1091fc6a0779b9bb75554c602e/test_image.png"
    },
    "name": "architecto"
  }
}