Set role permissions
PATCH/roles/:roleId/permissions
Set permissions for a role within a scope. Overwrites existing assignments if any.
Request
Path Parameters
roleId stringrequired
- application/json
Body
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
permissionIds string[]nullable
Responses
- 200
- 400
- 401
- 403
- 500
Success
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
roleId stringnullable
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
permissionIds string[]nullable
{
"roleId": "string",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
},
"permissionIds": [
"string"
]
}
- Schema
- Example (from schema)
Schema
roleId stringnullable
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
permissionIds string[]nullable
{
"roleId": "string",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
},
"permissionIds": [
"string"
]
}
- Schema
- Example (from schema)
Schema
roleId stringnullable
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
permissionIds string[]nullable
{
"roleId": "string",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
},
"permissionIds": [
"string"
]
}
Bad Request
Unauthorized
Forbidden
Server Error
Loading...