Skip to main content

Invite to Group

Brief Description

  • Invites users to join a group.

Request Method

  • post

Request URL

  • {API_ADDRESS}/group/invite_user_to_group
Header NameExample ValueOptionalTypeDescription
operationID1646445464564RequiredstringUsed for global trace tracking. It is recommended to use a timestamp, unique for each request
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameters Example

{
"groupID": "2759960147",
"invitedUserIDs": [
"1225441072",
"9906953281"
],
"reason": "your reason"
}
Field NameOptionalTypeDescription
groupIDRequiredstringGroup ID
invitedUserIDsRequiredarrayList of user IDs to be invited
reasonOptionalstringReason for the invitation

Success Response Example

{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}

Success Response Parameters Description

Parameter NameTypeDescription
errCodeintError code, 0 indicates success
errMsgstringBrief error message, empty if none
errDlterrDltDetailed error information, empty if none
dataobjectGeneral data object, see structure below

Failure Response Example

{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}

Failure Response Parameters Description

Parameter NameTypeDescription
errCodeintError code, refer to global error code documentation
errMsgstringBrief error message
errDlterrDltDetailed error information