set_group_info
Brief Description
- Modify the group information. (This interface is deprecated, it is recommended to use
set_group_info_ex
)
Request Method
post
Request URL
http://x.x.x.x:10002/group/set_group_info
Header
Header Name | Example Value | Optional | Type | Description |
---|---|---|---|---|
operationID | 1646445464564 | Required | string | operationID for global link tracking |
token | eyJhbxxxx3Xs | Required | string | Administrator token |
Sample Request Parameters
{
"groupInfoForSet": {
"groupID": "xadxwr24",
"groupName": "new name",
"notification": "new notification",
"introduction": "new introduction",
"faceURL": "www.newfaceURL.com",
"ex": "new ex",
"needVerification": 1,
"lookMemberInfo": 1,
"applyMemberFriend": 1
}
}
Field Name | Optional | Type | Description |
---|---|---|---|
groupInfoForSet | Required | object | Group information object |
groupInfoForSet.groupID | Required | string | ID of the group to be modified |
groupInfoForSet.groupName | Optional | string | New group name |
groupInfoForSet.notification | Optional | string | New group announcement |
groupInfoForSet.introduction | Optional | string | New group introduction |
groupInfoForSet.faceURL | Optional | string | New group avatar |
groupInfoForSet.ex | Optional | string | New group extended field |
groupInfoForSet.needVerification | Optional | int | Whether verification is needed to join the group; 0: Group join requests require approval, members can be invited directly; 1: Everyone requires verification to join, except for invitations by group owner or admin; 2: Join directly |
groupInfoForSet.lookMemberInfo | Optional | int | Permission to view other group members' information; 0: Allowed to view group members' information, 1: Not allowed to view |
groupInfoForSet.applyMemberFriend | Optional | int | Permission for group members to add friends; 0: Allowed to add friends from group members, 1: Not allowed |
Sample Success Response
{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}
Parameters Explanation for Success Response
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, 0 means success |
errMsg | string | Brief error message, empty if no error |
errDlt | errDlt | Detailed error message, empty if no error |
data | object | General data object, see detailed structure below |
Sample Failure Response
{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}
Parameters Explanation for Failure Response
Parameter Name | Type | Description |
---|---|---|
errCode | int | Error code, see global error code documentation for details |
errMsg | string | Brief error message |
errDlt | errDlt | Detailed error message |