Assign a list of roles to one identity. Replaces existing assignments if any.
PATCH/roles/assignments
Assigns (replaces) roles to a user identity within an optional organization or project context
Request
- application/json
Body
identity stringnullable
roleIds string[]nullable
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
identityType stringnullable
identityName stringnullable
expirationTime date-timenullable
Responses
- 200
- 400
- 401
- 403
- 500
Success
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
]
roleId stringnullable
identityId stringnullable
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
identityName stringnullable
identityType stringnullable
expirationTime date-timenullable
expired boolean
[
{
"roleId": "string",
"identityId": "string",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
},
"identityName": "string",
"identityType": "string",
"expirationTime": "2024-07-29T15:51:28.071Z",
"expired": true
}
]
- Schema
- Example (from schema)
Schema
Array [
]
roleId stringnullable
identityId stringnullable
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
identityName stringnullable
identityType stringnullable
expirationTime date-timenullable
expired boolean
[
{
"roleId": "string",
"identityId": "string",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
},
"identityName": "string",
"identityType": "string",
"expirationTime": "2024-07-29T15:51:28.071Z",
"expired": true
}
]
- Schema
- Example (from schema)
Schema
Array [
]
roleId stringnullable
identityId stringnullable
scope
object
organizationId stringnullable
projectId stringnullable
resourcePath stringnullable
resourceType stringnullable
viewerSceneId stringnullable
isOrgLevel boolean
identityName stringnullable
identityType stringnullable
expirationTime date-timenullable
expired boolean
[
{
"roleId": "string",
"identityId": "string",
"scope": {
"organizationId": "string",
"projectId": "string",
"resourcePath": "string",
"resourceType": "string",
"viewerSceneId": "string",
"isOrgLevel": true
},
"identityName": "string",
"identityType": "string",
"expirationTime": "2024-07-29T15:51:28.071Z",
"expired": true
}
]
Bad Request
Unauthorized
Forbidden
Server Error
Loading...