Delete User Roles

Last Updated on : 2023-07-06 09:09:38download

Delete multiple roles of a specifed user in the same call.

API address

POST: /v1.0/iot-03/idaas/delete-user-batch-role

Request parameter

Parameter nameTypeINRequiredDescription

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

POST: /v1.0/iot-03/idaas/delete-user-batch-role
{
  "uid": "uid1",
  "role_code_list": [
    "roleCode1",
    "roleCode2"
  ],
  "space_id": "12345"
}

Return example

{
    "result": true,
    "t": 1623003143386,
    "success": true
}

Error code

For more information, see error code.