Last Updated on : 2023-06-15 04:49:25
Authorize multiple assets to a specified user by user ID and asset ID. You can choose whether to authorize the asset sub-nodes.
POST: /v1.0/iot-03/users/{uid}/actions/batch-assets-authorized
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
uid | String | uri | true | The ID of the authorized user. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
asset_ids | String | body | true | The set of asset IDs. |
authorized_children | Boolean | body | false | Specifies whether to authorize sub-nodes. Default value: false . |
Parameter name | Type | Description |
---|---|---|
result | Boolean | true |
POST: /v1.0/iot-03/users/bay1616667080117Pxxx/actions/batch-assets-authorized
{
"uid": "bay1616667080117Pxxx",
"asset_ids": "1399624700161691xxx,1399624700161692xxx",
"authorizedChildren": true
}
{
"result": true,
"t": 1616501326790,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback