List roles
GET https://manage.kontent.ai/v2/projects/:environment_id/roles
Retrieve a list of all roles in the specified environment.
This endpoint requires Enterprise or Flex plan and the Manage custom roles permission.
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"roles":[{"name":"Project manager","codename":"project-manager"},{"name":"Custom role"}]}