Bitrix24 REST API

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

Comments by users are not official documentation. Responsibility for use of the comments are born by users themselves.

The user comments section is not intended as a request box or training area, but rather for specific usage examples. For more general inquiries, please refer to link.

Comments may be added only by registered users and appear after moderation.
© 2001-2017 Bitrix, Inc. Bitrix® is a registered trademark of Bitrix, Inc. Powered by Bitrix Site Manager