Update Element User (v2.1)
PUT/v2.1/api/tenants/:tenant_id/elementusers/:user_id
Update a specific element user.
Request
Path Parameters
The tenant ID.
The element user ID.
- application/json
Body
Details of the element user to be updated
The ID.
The tenant level is flagged.
The element user log in ID. Login Id length should be between 4 and 16. = ^[a-z][-a-z0-9]*$
The new password. Password should have atleast one alphabet, one numeric and a special character. Allowed special characters are ? = . * ! @ # % ^ & _ -; Password Length should be between 8 to 64.
Possible values: [SUPER
, READONLY
, MONITOR
, EVAL
]
The user role.
ID of the tenant.
The username. Max length = 255.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The ID.
The tenant level is flagged.
The element user log in ID. Login Id length should be between 4 and 16. = ^[a-z][-a-z0-9]*$
Possible values: [SUPER
, READONLY
, MONITOR
, EVAL
]
The user role.
ID of the tenant.
The username. Max length = 255.
{
"id": "string",
"is_tenant_level": true,
"login_id": "string",
"role": "SUPER",
"tenant_id": "string",
"username": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_USERNAME"
},
{
"code": "LOGIN_ID_REQUIRED"
},
{
"code": "RESERVED_ELEMENT_USER_LOGIN_ID"
},
{
"code": "IS_TENANT_LEVEL_FLAG_REQUIRED"
},
{
"code": "INVALID_USER_ROLE"
},
{
"code": "LOGIN_ID_CONSTRAINT_LENGTH"
},
{
"code": "INVALID_LOGIN_ID"
}
]
}
}