Last Updated on : 2023-07-06 09:12:21download
Add a permission.
POST: /v1.0/iot-03/idaas/spaces/{space_id}/permissions
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
space_id | String | uri | true | The ID of a specified space. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
permission_code | String | true | The identifier of a specified permission. | |
name | String | false | The name that is displayed. | |
type | Integer | true | The type of specified permission. Valid values: 1 : API. 2 : menu. 3 : button. 4 : data. 5 : combination. | |
parent_code | String | false | The identifier of a parent permission. | |
order | Integer | false | The ascending order in which the items are displayed. | |
remark | String | false | The remarks. |
Parameter name | Type | Description |
---|---|---|
result | Boolean |
POST: /v1.0/iot-03/idaas/spaces/1/permissions
{
"name": "name",
"order": 1,
"permission_code": "permissionCode",
"remark": "remark",
"space_id": "1400762304747802670",
"type": 1
}
{
"result": true,
"t": 1622808344972,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback