Gets available permissions
GET<your-unleash-url>/api/admin/permissions
Returns a list of available permissions
Responses
- 200
adminPermissionsSchema
- application/json
- Schema
- Example (auto)
Schema
permissions objectrequired
versionintegerrequired
The api version of this response. A natural increasing number. Only increases if format changes
Possible values: >= 1
, [1
, 2
]
Example:
1
{
"permissions": {
"root": [
{
"id": 3,
"name": "UPDATE_FEATURE",
"displayName": "Update feature flags",
"type": "project",
"environment": "development"
}
],
"project": [
{
"id": 3,
"name": "UPDATE_FEATURE",
"displayName": "Update feature flags",
"type": "project",
"environment": "development"
}
],
"environments": [
{
"name": "development",
"permissions": [
{
"id": 3,
"name": "UPDATE_FEATURE",
"displayName": "Update feature flags",
"type": "project",
"environment": "development"
}
]
}
]
},
"version": 1
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '<your-unleash-url>/api/admin/permissions' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
ResponseClear