Last Updated on : 2023-07-06 09:13:40download
Add multiple roles for a specified user.
POST: /v1.0/iot-02/users/{uid}/roles
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
uid | String | uri | true | The user ID. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
roleCodes | List | true | The identifier of a specified role. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | Indicates whether the operation is successful. Valid values:
|
POST: /v1.0/iot-02/users/123/roles
{
"permission_code": "permissionCodendhs"
}
{
"tid": "916a3b68987e11ec881ac2511f4137af",
"result": true,
"t": 1646042991513,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback