Update Permission Attributes

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

Update the permission attributes.

API address

PUT: /v1.0/iot-03/idaas/spaces/{space_id}/permissions/{permission_code}

Request parameter

Parameter nameTypeINRequiredDescription
space_idStringuritrueThe ID of a specified space.
permission_codeStringuritrueThe code of a specified permission.

Description of body

Parameter nameTypeINRequiredDescription
nameString falseThe name that is displayed.
typeInteger falseThe type of specified permission. 1: API. 2: menu. 3: button. 4: data. 5: combination.
parent_codeString falseThe identifier of a parent permission.
orderInteger falseThe displayed sequence.
remarkString falseThe remarks.

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result.

Request example

PUT: /v1.0/iot-03/idaas/spaces/1/permissions/1
{
  "name": "updateName",
  "type": 2,
  "order": 2,
  "remark": "updateRemark"
}

Return example

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

Error code

For more information, see error code.