Revoke Asset Permissions from a User

Last Updated on : 2023-06-20 15:20:09download

Revoke permissions on multiple assets from a specified user. You can specify whether to revoke the permissions on sub-assets.

API address

POST: /v1.0/iot-03/users/{uid}/actions/batch-assets-unauthorized

Request parameter

Parameter nameTypeINRequiredDescription
uidStringuritrueThe ID of the user whose asset permissions will been revoked.

Return parameter

Parameter nameTypeDescription

Request example

POST: /v1.0/iot-03/users/bay1621391065360***/actions/batch-assets-unauthorized
  "asset_ids": "140030403357029***,1400304047830925***",
  "authorizedChildren": true

Return example

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

Error code

For more information, see error code.