Unbind from Social Network Group landing.site.unbindingFromGroup

We are still updating this page

Some data may be missing here — we will complete it shortly.

Scope: landing

Who can execute the method: any user

The method landing.site.unbindingFromGroup unbinds a specific Knowledge Base from a group. The user must be a member of the specified group.

Parameters

Parameter

Description

Version

id
unknown

Identifier of the Knowledge Base.

groupId
unknown

Identifier of the group.

Examples

try
        {
        	const response = await $b24.callMethod(
        		'landing.site.unbindingFromGroup',
        		{
        			id: 32,
        			groupId: 174
        		}
        	);
        	
        	const result = response.getData().result;
        	console.info(result);
        }
        catch(error)
        {
        	console.error(error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'landing.site.unbindingFromGroup',
                    [
                        'id'      => 32,
                        'groupId' => 174,
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            if ($result->error()) {
                error_log($result->error());
            } else {
                echo 'Info: ' . print_r($result->data(), true);
            }
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error unbinding site from group: ' . $e->getMessage();
        }
        
BX24.callMethod(
            'landing.site.unbindingFromGroup',
            {
                id: 32,
                groupId: 174
            },
            function(result)
            {
                if(result.error())
                {
                    console.error(result.error());
                }
                else
                {
                    console.info(result.data());
                }
            }
        );
        

How to Use Examples in Documentation