Delete a request file

A verified researcher is able to delete an attached file of his/hers request (and revisions).

{info} Only a researcher can delete files from his/hers active request revisions.


Method Uri Auth Role
DELETE /v1/requests/{UUID}/files/{UUID} Bearer JWT-Token researcher

Headers

The API requires a header Accept to be submitted with the request:

{
    "Accept": "application/json",
    "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..." 
}

Success Responses

Condition : User must be a researcher.

Code : 204 No Content

Content example : Response contains no content, only a confirmation

HTTP/1.1 204 No Content
Server: nginx/1.18.0 (Ubuntu)
Connection: close
Cache-Control: no-cache, private
Date: Mon, 01 Feb 2021 12:49:50 GMT
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 57

Error Responses

Condition : If the current user does not have the role researcher attached and is not the owning request user.

Code : 403 Unauthorized

Content example :

{
    "message": "You\'re not allowed to download to this file"
}