提交工单
咨询集成、功能及报价等问题
Sets user permissions on a whiteboard.
Listed below are the parameters specific to this request. For the complete list of public request parameters, see Accessing Server APIs - Public parameters..
Parameter | Type | Required | Description |
---|---|---|---|
RoomId |
String |
Yes |
Room ID. |
UserId |
String |
Yes |
User ID. |
ModuleAuth[] |
Array of Number |
Yes |
Operation permissions on whiteboards. The value cannot be an empty array.
|
GraphicAuth[] |
Array of Number |
Yes |
Operation permissions on diagram elements. The value cannot be an empty array.
|
Set the following user permissions:
https://whiteboard-api.zego.im/?Action=SetWhiteboardUserAuth
&RoomId=RoomName
&UserId=jack
&ModuleAuth[]=1&ModuleAuth[]=2
&GraphicAuth[]=32&GraphicAuth[]=2
&<Public request parameters>
Parameter | Type | Description |
---|---|---|
Code |
Number |
Return code. |
Message |
String |
Message. |
RequestId |
String |
Unique request ID generated by ZEGO. |
{
"Code":0,
"Message":"SUCCESS",
"RequestId":"2237080460466033406"
}
Listed below are the return codes related to this API. For the complete list of return codes, see Return codes.
Return code | Description |
---|---|
120000001 |
Signature authentication failed. |
120000002 |
Incorrect input parameters. |
120000101 |
Failed to set user permissions. |
120000105 |
An empty array is entered for operation permissions. |
120000106 |
Invalid values are set for the operation permissions. |
120000201 |
The user does not exist. |