Project roles
GET/project/:id/roles
Get array of project roles
Request
Path Parameters
id stringrequired
A unique project ID
Example: 5e9602e7a39e5a46428b457f
Responses
- 200
List of Project Areas/Groups
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
id string
Example:
4
users_id nullable
name string
Example:
project admin
permissions string[]
systemRole boolean
Example:
true
permissionsSwitches
object
Project permissions for current user
read boolean
Can current user view results?
run boolean
Can current user run checks?
editTest boolean
edit boolean
Can current user edit project settings?
manageUsers boolean
Can current user manage others?
Default value:
true
apiKey boolean
Can current user view apiKey?
Default value:
true
leave boolean
Can current user leave project?
Default value:
true
[
{
"id": 4,
"users_id": "string",
"name": "project admin",
"permissions": [
[
"read",
"run",
"editTests",
"edit",
"manageUsers",
"apiKey"
]
],
"systemRole": true,
"permissionsSwitches": {
"read": true,
"run": true,
"editTest": true,
"edit": true,
"manageUsers": true,
"apiKey": true,
"leave": true
}
}
]