Soft deletes a non-researcher user from the system.
{info} Only an admin can delete system users
| Method | Uri | Auth | Role |
|---|---|---|---|
DELETE |
/v1/users/{uuid} |
Bearer JWT-Token |
admin |
The API requires a header Accept to be submitted with the request:
{
"Accept": "application/json",
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..."
}
Condition : User must be an admin.
Code : 204 Okay
Condition : If the current user does not have the role admin attached.
Code : 403 Forbidden
Content example :
{
"message": "This action is unauthorized."
}