A verified admin is able to update a permission group.
{info} Only an admin can update permission groups
Method | Uri | Auth | Role |
---|---|---|---|
PUT |
/v1/groups/{uuid} |
Bearer JWT-Token |
admin |
{
"Accept": "application/json",
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..."
}
[{
"name": "required",
"permissions": "required, array:string"
}]
Condition : User must be an admin
.
Code : 200 Okay
Content example : Response will reflect back the created group.
{
"id": "cee6bd83-b070-4af2-87a1-8a5500f863a8",
"name": "group name 2",
"permissions": [
"view",
"download-for-use"
]
}
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."
]
}