Set Viewing Permissions

Last Updated on : 2023-06-15 05:48:29

Set the permissions for a specified organization or user to view a specified application.

API address

PUT: /v1.0/iot-03/app-instances/{app_instance_id}/permissions

Request parameter

Parameter name Type IN Required Description
app_instance_id String uri true The ID of a specified application instance.

Description of body

Parameter name Type IN Required Description
org_ids List true The set of organization IDs.
uids List true The set of user IDs.
full_authorization Boolean true Indicates whether to authorize all users.

Return parameter

Parameter name Type Description
result Boolean Indicates whether the operation is successful.

Request example

PUT: /v1.0/app-instances/1/permissions
{ "fullAuthorization": false, "uids": [ "1xx" ], "org_ids": [ "2xx" ] }

Return example

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

Error code

For more information, see error code.