提交工单
咨询集成、功能及报价等问题
Call this interface to set the user's whiteboard authority.
Call frequency limit:
The following request parameter list only lists the interface request parameters. For the list of public parameters, please refer to API Call Method - Public Request Parameters.
Parameters | Type | Required | Description |
---|---|---|---|
RoomId | String | Yes | The room ID that needs to be set. |
UserId | String | Yes | The user ID that needs to be set. |
ModuleAuth[] | Array of Number | Yes | A set of whiteboard operation permissions, no empty array is allowed.
|
GraphicAuth[] | Array of Number | Yes | Graphic element operation permission collection, it is not allowed to pass empty array.
|
The following is an example of a request for the user authority interface. Only the interface request parameters are listed in the request example. For public request parameters, please refer to the request example in API Call Method - Public Request Parameters.
Set user permissions as:
https://whiteboard-api.zego.im/?Action=SetWhiteboardUserAuth
&RoomId=RoomName
&UserId=jack
&ModuleAuth[]=1&ModuleAuth[]=2
&GraphicAuth[]=32&GraphicAuth[]=2
&<Public request parameters>
Parameters | Type | Description |
---|---|---|
Code | Number | Return code. |
Message | String | Details. |
RequestId | String | Unique request ID generated by ZEGO. |
{
"Code":0,
"Message":"SUCCESS",
"RequestId":"2237080460466033406"
}
Return code | Description |
---|---|
0 | The request was successful. |
120000001 | Signature authentication failed. |
120000002 | The input parameter is incorrect. |
120000101 | Failed to set user permissions. |
120000105 | The permission set passed an empty array and failed. |
120000106 | An illegal permission number is set in the permission set. |
120000201 | The user does not exist. |