Documentation

sonet_group.user.invite

Description

Invites users to social network group on behalf of current user. Checks current user access permission to the group.

Returns array of user IDs, successfully invited to group.

Request:

https://mydomain.bitrix24.com/rest/sonet_group.user.invite.json?auth=52423d4a5f19f5f964f9b4e96a925cfa&GROUP_ID=15&USER_ID=3&MESSAGE=Invitation

Response:

{"result":["3"]}

Parameters

Parameter Description
GROUP_ID Group ID with invitation.
USER_ID User ID (or array with user IDs), to be invited to group
MESSAGE Invitation text.

Example

// Invite user with ID=3 to social network group with ID=15

BX24.callMethod('sonet_group.user.invite', {
	'GROUP_ID': 15,
	'USER_ID': 3,
	'MESSAGE': 'Invitation'
});


© «Bitrix24», 2001-2024