Update Permission

Last Updated on : 2023-07-06 09:14:03download

Update the information about the specified permission. You can update the permission name, permission type, parent permission code, display order, and remarks.

API address

PUT: /v1.0/iot-02/permissions/{permission_code}

Request parameter

Parameter nameTypeINRequiredDescription
permission_codeStringuritrueThe identifier of a permission.

Description of body

Parameter nameTypeINRequiredDescription
permissionNameString falseThe name of a specified permission.
permissionTypeInteger falseThe type of permission. Valid values:
  • 1: API
  • 2: menu
  • 3: button
  • 4: data
  • 5: combination
parentCodeString falseThe identifier of a parent permission.
orderInteger falseThe order that the items are displayed.
remarkString falseThe remarks.

Return parameter

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

Request example

PUT: /v1.0/iot-02/permissions/123456783456789****

Return example

true

Error code

For more information, see error code.