A verified admin is able to delete a permission group.
{info} Only an admin can delete groups
Method | Uri | Auth | Role |
---|---|---|---|
DELETE |
/v1/groups/{uuid} |
Bearer JWT-Token |
admin |
{
"Accept": "application/json",
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..."
}
Condition : User must be an admin
.
Code : 204 No-Content
Condition : If the current user does not have the role admin
attached.
Code : 403 Forbidden
Content example :
{
"message": "User does not have the right permissions."
}
Condition : If the current user is not logged in
Code : 401 Unauthorized
Content example :
{
"message": "Je moet zijn ingelogd om dit te kunnen doen.",
"errors": [
"Unauthenticated."
]
}