Grant Role to Element User (v2.1)
POST/v2.1/api/tenants/:tenant_id/elementusers/:user_id/access
Grant a specific role to an element user on a specific element.
Request
Path Parameters
tenant_id stringrequired
The tenant ID.
user_id stringrequired
The element user ID.
- application/json
Body
Details of the specific role for element user to be granted
element_id stringrequired
The element ID.
id string
The ID.
role stringrequired
Possible values: [SUPER
, READONLY
, MONITOR
, EVAL
]
The user role.
tenant_id stringrequired
ID of the tenant.
user_id string
The element user ID.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
element_id stringrequired
The element ID.
id string
The ID.
role stringrequired
Possible values: [SUPER
, READONLY
, MONITOR
, EVAL
]
The user role.
tenant_id stringrequired
ID of the tenant.
user_id string
The element user ID.
{
"element_id": "string",
"id": "string",
"role": "SUPER",
"tenant_id": "string",
"user_id": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
code string
The error code.
message string
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_ENUM_VALUE"
}
]
}
}
Loading...