Modify Permission

Last Updated on : 2023-10-09 08:07:22download

Modify the name and description of the specified permission based on the permission ID, name, and description.

API address

PUT: /v2.0/cloud/iam/permission/{permission_id}

Request parameter

Parameter nameTypeINRequiredDescription
permission_idLonguritrueThe ID of the specified permission.

Description of body

Parameter nameTypeINRequiredDescription
nameString trueThe name of the specified permission.
descriptionString trueThe description of the specified 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

PUT: /v2.0/cloud/iam/permission/1
{
  "name": "modify",
  "description": "modifyDesc"
}

Return example

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

Error code

For more information, see error code.