Unlink Sub-Permission

Last Updated on : 2023-10-09 08:09:32download

Based on the permission ID and sub-permission ID, unlink the specified sub-permission that is linked with the specified permission.

API address

DELETE: /v2.0/cloud/iam/permission/{permission_id}/item/{item_id}

Request parameter

Parameter nameTypeINRequiredDescription
permission_idLonguritrueThe ID of the specified permission.
item_idLonguritrueThe ID of the specified sub-permission.

Return parameter

Parameter nameTypeDescription
successBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
error_codeStringThe error code. For more information, see the error codes.
error_msgStringThe message that is returned if the request fails. It is empty if the request is successful.
resultObjectThe returned result. Valid values:
  • true: success.
  • false: failure.

Request example

DELETE: /v2.0/cloud/iam/permission/1/item/101

Return example

{
    "tid": "f5ffe2440b5111ee8144726abb6617ad",
    "result": true,
    "t": 1686815715734,
    "success": true
}

Error code

For more information, see error code.