Last Updated on : 2023-07-06 09:14:08download
Create permissions in bulk. You can set the permission type, display order, remarks, and parent permissions.
POST: /v1.0/iot-02/permissions
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
permissions | List | body | true | The request of creating permissions. |
Description of permissions
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
order | Integer | false | The order that the items are displayed. | |
remark | String | false | The remarks. | |
permission_code | String | true | The identifier of a permission. | |
permission_name | String | false | The name of a specified permission. | |
permission_type | Integer | true | The type of the specified permission. Valid values:
| |
parent_code | String | false | The identifier of a parent permission. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | Indicates whether the operation is successful. Valid values:
|
POST: /v1.0/iot-02/permissions
{
"permissions": [
{
"permission_type": 4,
"remark": "Permission",
"permission_code": "permissionCode****",
"permission_name": "namepermissionCode****",
"order": 3
}
]
}
true
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback