Delete a system user

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

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 an admin.

Code : 204 Okay

Error Responses

Condition : If the current user does not have the role admin attached.

Code : 403 Forbidden

Content example :

{
  "message": "This action is unauthorized."
}