Call this interface to set the default whiteboard permission of the room.
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. |
ModuleAuth[] | Array of Number | Yes | A set of whiteboard operation permissions. It is not allowed to pass an empty array.
|
GraphicAuth[] | Array of Number | Yes | Graphic element operation permission collection, it is not allowed to pass an empty array.
|
The following is an example of a request for the room permission 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 the default permissions of the room as:
https://whiteboard-api.zego.im/?Action=SetWhiteboardRoomAuth
&RoomId=RoomName
&ModuleAuth[]=1&ModuleAuth[]=2
&GraphicAuth[]=32&GraphicAuth[]=2
&<Public request parameters>
Parameters | Type | Description |
---|---|---|
Code | Number | Return code. |
Message | String | Details. |
RequestId | String | The 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. |
120000103 | Failed to set room permissions. |
120000105 | The permission set passed an empty array and failed. |
120000106 | An illegal permission number is set in the permission set. |
120000301 | The room does not exist. |