Delete Role Information

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

Delete the information about a specified role based on the role code.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
role_codeStringuritrueThe identifier of a specified role.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful. Valid values:
  • true: Deleted successfully.
  • false: Failed to delete it.

Request example

DELETE: /v1.0/iot-02/roles/roleCodegcnI****

Return example

{
    "tid": "5260b7a3948811ec82481264f1be8bd1",
    "result": true,
    "t": 1645607376154,
    "success": true
}

Error code

For more information, see error code.