Group Type ID | REST API Support |
Private | No. It is similar to Work (friend work group) in the new version. |
Public | No. |
ChatRoom | No. It is similar to Meeting (temporary meeting group) in the new version. |
AVChatRoom | Yes. |
Community | No. |
https://xxxxxx/v4/group_open_avchatroom_http_svc/modify_admin?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
Parameter | Description |
xxxxxx | The dedicated domain name corresponding to the country/region of the SDKAppID: China: console.tim.qq.com Singapore: adminapisgp.im.qcloud.com Seoul: adminapikr.im.qcloud.com Frankfurt: adminapiger.im.qcloud.com Silicon Valley: adminapiusa.im.qcloud.com Jakarta: adminapiidn.im.qcloud.com |
v4/group_open_avchatroom_http_svc/modify_admin | Request API. |
sdkappid | The SDKAppID assigned by the Chat console when an application is created. |
identifier | |
usersig | |
random | A random 32-bit unsigned integer ranging from 0 to 4294967295. |
contenttype | The request format is fixed to json . |
{"GroupId":"@TGS#a6I4ZUUGO","CommandType": 1,"Admin_Account": ["user1"]}
Field | Type | Attribute | Description |
GroupId | String | Required | ID of the operated group. |
CommandType | Integer | Required | 1: Sets an administrator. 2: Cancels administrator settings. |
Admin_Account | Array | Required | UserID list of administrators to be modified. A live streaming group can have up to 5 administrators. |
{"ActionStatus": "OK","ErrorCode": 0,"ErrorInfo": ""}
Field | Type | Description |
ActionStatus | String | Processing results: OK: succeeded. FAIL: failed. |
ErrorCode | Integer | Error code: 0: succeeded. Other values: failed. |
ErrorInfo | String | Error message. |
Error Code | Description |
10001 | The user does not log in. Please check whether the admin account and usersig are correct. |
10002 | System error. Please try again or contact technical support. |
10003 | Invalid request command. Please try again or contact technical support. |
10004 | Invalid parameters. Please check whether the required fields are filled in or whether the field fillings meet the protocol requirements based on the ErrorInfo field in the response packets. |
10007 | Insufficient permissions. Non-AVChatRoom group types do not support obtaining the online user count. |
10010 | The group does not exist, or it once existed but has now been dissolved. |
10008 | The number of admin in the AVChatRoom has exceeded the limit. Or, the Pro edition, Pro Plus edition or Enterprise edition package has not been activated, and the live streaming group online member list feature has not been enabled in the group feature configuration on the console. |
10015 | Invalid group ID. Please check whether the group ID is filled in correctly. |