Gets available permissions
GET/api/admin/permissions
Returns a list of available permissions
Responses
- 200
adminPermissionsSchema
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Array [
Array [
]
]
permissions
object
required
Returns permissions available at all three levels (root|project|environment)
root
object[]
Permissions available at the root level, i.e. not connected to any specific project or environment
The identifier for this permission
3
The name of this permission
UPDATE_FEATURE
The name to display in listings of permissions
Update feature flags
What level this permission applies to. Either root, project or the name of the environment it applies to
project
Which environment this permission applies to
development
project
object[]
required
Permissions available at the project level
The identifier for this permission
3
The name of this permission
UPDATE_FEATURE
The name to display in listings of permissions
Update feature flags
What level this permission applies to. Either root, project or the name of the environment it applies to
project
Which environment this permission applies to
development
environments
object[]
required
A list of environments with available permissions per environment
The name of the environment
development
permissions
object[]
required
Permissions available for this environment
The identifier for this permission
3
The name of this permission
UPDATE_FEATURE
The name to display in listings of permissions
Update feature flags
What level this permission applies to. Either root, project or the name of the environment it applies to
project
Which environment this permission applies to
development
The api version of this response. A natural increasing number. Only increases if format changes
Possible values: >= 1
, [1
, 2
]
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
}