A verified researcher is able to delete a request belonging to him/her.
{warning} The request will be (force)deleted permanently
| Method | Uri | Auth | Role |
|---|---|---|---|
DELETE |
/v1/requests/{UUID} |
Bearer JWT-Token |
researcher |
The API requires a header Accept to be submitted with the request:
{
"Accept": "application/json",
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..."
}
Condition : User must be a researcher.
Code : 204 No Content
Content example : Response will reflect back the deleted confirmation as 204 No Content
HTTP/1.1 204 No Content
Server: nginx/1.18.0 (Ubuntu)
Connection: close
Cache-Control: no-cache, private
Date: Mon, 01 Feb 2021 13:06:22 GMT
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
Condition : If the current user does not have the role researcher attached.
Code : 403 Unauthorized
Content example :
{
"message": "User does not have the right roles."
}
Condition : If the request does not exist.
Code : 404 Not Found
Content example :
{
"message": "No query results for model [App\Models\Request].""
}