Authorize Assets

Last Updated on : 2023-06-20 15:19:24download

Authorize users to manage the specified assets.

API address

POST: /v1.0/iot-03/assets/actions/user-authorized

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
asset_idStringbodytrueThe asset ID.
uidStringbodytrueThe user ID (UID).
authorized_childrenBooleanbodyfalseIndicates whether to authorize users to manage the child nodes. Default value: false.

Return parameter

Parameter nameTypeDescription
resultBooleantrue

Request example

POST: /v1.0/iot-03/assets/actions/user-authorized
{
  "assetId": "1371378219684466xxx",
  "uid": "bay1624534580942txxx",
  "authorizedChildren": "false"
}

Return example

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

Error code

For more information, see error code.