Documentation

landing.site.add

landing.site.add(fields)

This method adds a site. Returns ID of the created site or an error.

Parameters

Parameter Description Available from version
fields Entity fields

Example

BX24.callMethod(
	'landing.site.add',
	{
		fields: {
			TITLE: 'My first site!',
			CODE: 'firstsite',
			DOMAIN_ID: 'my.bitrix24.site'
		}
	},
	function(result)
	{
		if(result.error())
		{
			console.error(result.error());
		}
		else
		{
			console.info(result.data());
		}
	}
);


© «Bitrix24», 2001-2024