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
3The name of this permission
UPDATE_FEATUREThe name to display in listings of permissions
Update feature flagsWhat level this permission applies to. Either root, project or the name of the environment it applies to
projectWhich environment this permission applies to
developmentproject
object[]
required
Permissions available at the project level
The identifier for this permission
3The name of this permission
UPDATE_FEATUREThe name to display in listings of permissions
Update feature flagsWhat level this permission applies to. Either root, project or the name of the environment it applies to
projectWhich environment this permission applies to
developmentenvironments
object[]
required
A list of environments with available permissions per environment
The name of the environment
developmentpermissions
object[]
required
Permissions available for this environment
The identifier for this permission
3The name of this permission
UPDATE_FEATUREThe name to display in listings of permissions
Update feature flagsWhat level this permission applies to. Either root, project or the name of the environment it applies to
projectWhich environment this permission applies to
developmentThe 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
}