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.eyJzdWIiOiIxOTEyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE0LCJleHAiOjE3NjYyMTg0MTQsImp0aSI6ImEzY2ZkZGU0LWM2ZjItNDQyMi1hNDY3LTY4MzgxMGI5OGRmOSJ9.SWkf9xZlClHqar4_VXKDe00dkOkBRCrtgaMD73NaRAE
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/"c609be01b8e155fe6c253533db9b76e8"
cache-control: max-age=0, private, must-revalidate
x-request-id: 67d68649-4be7-4454-ada8-456388c92a92
x-runtime: 0.014512
content-length: 386

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