Update Role Information

Last Updated on : 2023-07-06 09:12:54download

Update the role information, including the role name and remarks.

API address

PUT: /v1.0/iot-02/roles/{role_code}

Request parameter

Parameter nameTypeINRequiredDescription
role_codeStringuritrueThe identifier of a specified role.

Description of body

Parameter nameTypeINRequiredDescription
remarkString falseThe remarks.
role_nameString falseThe name of a specified role.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful. Valid values:
  • true: success.
  • false: failure.

Request example

PUT: /v1.0/iot-02/roles/12345678901234****
{
  "remark": "Remarks",
  "role_name": "Admin"
}

Return example

true

Error code

For more information, see error code.