Documentation

sonet_group.update

Changes parameters of a social network group using the API method CSocNetGroup::Update() To perform action the current user must either be the group owner or have social network administration permissions.


Get all fields in parameters required for the a href="/api_help/socialnetwork/classes/CSocNetGroup/Update.php">CSocNetGroup::Update() method to work, as well as GROUP_ID - the group ID that needs to be changed.

Return new group ID on success, otherwise returns an error message.

Example

// Change the social network group ID=11 name to 'Test sonet group XXX'

BX24.callMethod('sonet_group.update', {
 'GROUP_ID': 11,
 'NAME': 'Test sonet group XXX'
});

Request:

https://mydomain.bitrix24.com/rest/sonet_group.update.json?auth=803f65e30340ff39703f8061c8b63a10&GROUP_ID=11&NAME=Test%20sonet%20group%20XXX

Response:

{"result":11}


© «Bitrix24», 2001-2024