Documentation

sonet_group.create

Create a social network group using the API method CSocNetGroup::CreateGroup() and specifying the current user as group owner.


Get all fields in parameters required for the CSocNetGroup::CreateGroup() method to work.

In the event that field SITE_ID is not specified, value corresponding to current website is used.

In the event that field SUBJECT_ID is not specified, value corresponding to workgroups with minimum sorting index for the specified (or current) website is used.

If create group is successful - return its ID, else - an error message.

Example

// Create a visible and public social network group named 'Test sonet group' with the permission to invite new group members for all current group members

BX24.callMethod('sonet_group.create', {
 'NAME': 'Test sonet group',
 'VISIBLE': 'Y',
 'OPENED': 'N',
 'INITIATE_PERMS': 'K'
});

Request:

https://mydomain.bitrix24.com/rest/sonet_group.create.json?auth=78aa4c5a031b77527ce3c6fa69c14f69&NAME=Test%20sonet%20group&VISIBLE=Y&OPENED=N&INITIATE_PERMS=K

Response:

{"result":11}


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2017, «Bitrix Inc.», 2017