Show a permission group

A verified admin is able to show a permission group.

{info} Only an admin can show permission groups


Method Uri Auth Role
GET /v1/groups/{uuid} Bearer JWT-Token admin

Headers

{
    "Accept": "application/json",
    "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3M..." 
}

Success Responses

Condition : User must be an admin.

Code : 200 Okay

Content example : Response will reflect back the group.

{
  "id": "cee6bd83-b070-4af2-87a1-8a5500f863a8",
  "name": "group name 2",
  "permissions": [
    "view",
    "download-for-use"
  ]
}

Error Responses

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."
  ]
}