Grant Role to Element User (v2.0)
POST/sdwan/v2.0/api/elementusers/:user_id/access
Grant a specific role to an element user on a specific element.
Request
Path Parameters
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.
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.
user_id string
The element user ID.
{
"element_id": "string",
"id": "string",
"role": "SUPER",
"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...