Websites and Stores: Overview of Methods

If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.

The methods in the landing group create and configure websites, stores, pages, and blocks. They manage publication, templates, access permissions, and embedding locations for applications.

The sequence of calls resembles working in a website editor: first, you create or select a site, then a page, add blocks, configure content, and publish the result.

Quick navigation: all methods

User documentation: Create and configure your Bitrix24 site

Structure of Websites and Stores

A website combines pages, folders, settings, access permissions, and publication. The type of website determines which pages, blocks, and settings are available in the landing methods.

A page belongs to a website and consists of blocks. Page methods create, copy, move, and publish the page, while block methods on the page add, hide, move, or delete blocks.

A block is a part of a page with an HTML structure, nodes, cards, attributes, and styles. Nodes store editable content, cards describe repeating elements of the block, and attributes and styles handle markup and design.

The block manifest shows which nodes, cards, attributes, and styles are available for modification via the API.

Changes to pages and blocks are saved in a draft. The publication method transfers changes to the public version of the page or website.

Getting Started

  1. Create a website using the landing.site.add method or retrieve an existing website using the landing.site.getList method.
  2. Create a page using the landing.landing.add method, select an existing one using the landing.landing.getList method, or create a page from a template using the landing.landing.addByTemplate method.
  3. Add a block to the page using the landing.landing.addblock method.
  4. Modify the block content using the landing.block.* methods.
  5. Publish the page using the landing.landing.publication method or the entire website using the landing.site.publication method.

Choosing Methods for Working with Blocks

There are two groups of methods for page blocks. The methods for working with blocks on the page manage the placement of blocks on a specific page: adding, copying, moving, hiding, deleting, and saving blocks to "My Blocks." The methods for the Block object modify the content of already placed blocks: nodes, cards, attributes, styles, content, and files.

Task

What to use

Add a block from the repository to the page

landing.landing.addblock

Change the order, visibility, or state of a block on the page

Methods for working with blocks on the page

Change text, images, links, cards, or styles of a block

Methods landing.block.*

Get the code of a standard or custom block before adding

landing.block.getrepository

Get the identifier of an already placed block

landing.block.getList with params.edit_mode = true

Additional Scenarios

Task

What to use

Configure repeating parts of pages

View templates and methods landing.template.*

Add your blocks to the editor

Custom blocks and methods landing.repo.*

Add your templates to the website and page creation wizard

Custom templates and methods landing.demos.*

Configure access to websites and stores

Permissions: extended or role-based model

Embed an application into the interface of websites and pages

Embedding locations

Embedding Locations

Embedding locations allow you to add an application to the interface of websites and pages. The application can be opened from the website or page settings and from block editing actions.

Website or page settings. The embedding location LANDING_SETTINGS adds an application item to the settings menu of the website or page. The identifiers of the website and page are passed to the handler in PLACEMENT_OPTIONS.

Block actions. The embedding location LANDING_BLOCK_* adds an application item to the block action menu. The block identifier, block code, and page identifier are passed to the handler.

Knowledge Base. The binding of the Knowledge Base to a menu or group is described in the subsection Embedding the Knowledge Base. These bindings are managed by the landing.site.* methods because the Knowledge Base is presented as a separate website.

In the landing module, embedding locations are registered using the internal method landing.repo.bind, not placement.bind. You can remove the embedding location of the current application using the landing.repo.unbind method.

Types of Websites and Scope

The methods in the landing group work with different types of websites: regular websites, stores, service websites, Knowledge Bases, group Knowledge Bases, the main page, and vibes. For some types, you need to pass the scope parameter at the root of the request.

This parameter is not related to the access scope landing that you grant to the application or webhook. The rules for selecting the scope value and examples of requests are described in the article Working with Website Types and Scopes.

Key Identifiers

Identifier

Where used

How to obtain

SITE_ID or siteId

Page, folder, rights, template methods, website publication, and Knowledge Base bindings

From the result of landing.site.add or landing.site.getList

LID or lid

Page, block, page publication methods, and embedding location LANDING_SETTINGS

From the result of landing.landing.add, landing.landing.addByTemplate, landing.landing.copy, or landing.landing.getList

FOLDER_ID, PARENT_ID or ID of the folder

Placing pages in folders and managing website structure

From the result of landing.site.addFolder or landing.site.getFolders

ID of the block

Modifying, moving, copying, hiding, and deleting a block on the page

From the result of landing.landing.addblock or landing.block.getlist with params.edit_mode = true, if you need a block from the draft

CODE of the block

Adding a standard or custom block to the page

From landing.block.getrepository or after registering the block using the landing.repo.register method

Overview of Methods

Scope: landing

Who can execute the method: depends on the method

Custom Blocks

Method

Description

landing.repo.register

Registers a custom block in the repository

landing.repo.checkContent

Checks the block content through a sanitizer

landing.repo.getList

Retrieves a list of custom blocks from the repository

landing.repo.unregister

Removes a custom block from the repository by its code

View Templates

Method

Description

landing.template.getlist

Retrieves a list of view templates

landing.template.getSiteRef

Retrieves a list of included areas for the website

landing.template.setSiteRef

Sets included areas for the website

landing.template.getLandingRef

Retrieves a list of included areas for the page

landing.template.setLandingRef

Sets included areas for the page

Custom Templates

Method

Description

landing.demos.register

Registers a template in the website and page creation wizard

landing.demos.getList

Retrieves a list of registered templates

landing.demos.getSiteList

Retrieves a list of templates for creating websites

landing.demos.getPageList

Retrieves a list of templates for creating pages

landing.demos.unregister

Removes a registered custom template

Websites

Method

Description

landing.site.add

Adds a website

landing.site.addFolder

Adds a folder to the website

landing.site.update

Updates website parameters

landing.site.updateFolder

Updates folder parameters

landing.site.getList

Retrieves a list of websites

landing.site.getFolders

Retrieves website folders

landing.site.getPreview

Returns the preview URL of the website

landing.site.getPublicUrl

Returns the public URL of the website

landing.site.getadditionalfields

Retrieves additional fields of the website

landing.site.publication

Publishes the website and all its pages

landing.site.publicationFolder

Publishes the website folder

landing.site.unpublic

Unpublishes the website and all its pages

landing.site.unPublicFolder

Unpublishes the website folder

landing.site.markDelete

Marks the website as deleted

landing.site.markFolderDelete

Marks the folder as deleted

landing.site.markFolderUnDelete

Restores the folder from the trash

landing.site.markUnDelete

Restores the website from the trash

landing.site.delete

Deletes the website

landing.site.fullExport

Exports the website and its pages to an array

Permissions

Method

Description

landing.role.enable

Enables or disables the role-based permission model

landing.role.isEnabled

Checks if the role-based permission model is enabled

Extended Permission Model

Method

Description

landing.site.getRights

Retrieves the current user's permissions for the website

landing.site.setRights

Sets access permissions for the website

Role-Based Permission Model

Method

Description

landing.role.getList

Retrieves a list of roles for the current type of websites

landing.role.getRights

Returns the permissions of the role by websites

landing.role.setAccessCodes

Sets access codes for the role

landing.role.setRights

Sets the permissions of the role by websites

Pages

Method

Description

landing.landing.add

Adds a page

landing.landing.addByTemplate

Creates a page from a template

landing.landing.copy

Copies a page

landing.landing.update

Modifies page parameters

landing.landing.move

Moves a page to another website or folder

landing.landing.getList

Retrieves a list of pages

landing.landing.getadditionalfields

Retrieves additional fields of the page

landing.landing.getpreview

Returns the path to the page preview

landing.landing.getpublicurl

Returns the public URL of the page

landing.landing.resolveIdByPublicUrl

Returns the identifier of the page by public URL

landing.landing.publication

Publishes the page

landing.landing.unpublic

Unpublishes the page

landing.landing.markDelete

Marks the page as deleted

landing.landing.markUnDelete

Restores the page from deleted

landing.landing.removeEntities

Removes blocks and images from the page

landing.landing.delete

Deletes the page

Working with Blocks on the Page

Method

Description

landing.landing.addblock

Adds a new block to the page

landing.landing.copyblock

Copies a block from one page to another

landing.landing.deleteblock

Deletes a block from the page

landing.landing.downblock

Moves the block down one position

landing.landing.favoriteBlock

Saves the block to "My Blocks"

landing.landing.hideblock

Hides the block on the page

landing.landing.markdeletedblock

Marks the block as deleted without physically removing it

landing.landing.markundeletedblock

Restores the block from deleted

landing.landing.moveblock

Moves the block from one page to another

landing.landing.showblock

Shows the block on the page

landing.landing.unFavoriteBlock

Removes the block from "My Blocks"

landing.landing.upblock

Moves the block up one position

Special Pages

Method

Description

landing.syspage.deleteForLanding

Deletes the page binding as special

landing.syspage.deleteForSite

Deletes all special pages of the website

landing.syspage.getSpecialPage

Retrieves the address of the special page of the website

landing.syspage.get

Retrieves a list of special pages

landing.syspage.set

Assigns a special page for the website

Blocks

Method

Description

landing.block.getlist

Retrieves a list of blocks on the page

landing.block.getbyid

Retrieves a block by its identifier

landing.block.getcontent

Retrieves the content of the block

landing.block.getmanifest

Retrieves the manifest of the block already placed on the page

landing.block.updatenodes

Modifies the content of the block's nodes

landing.block.updateattrs

Modifies the attributes of the block's nodes

landing.block.updateStyles

Modifies the styles of the block

landing.block.updatecontent

Updates the content of the block placed on the page with arbitrary content

landing.block.changeNodeName

Changes the tag name of the node

landing.block.changeAnchor

Changes the symbolic code of the block's anchor

landing.block.uploadfile

Uploads a file and binds it to the block

landing.block.clonecard

Clones a card of the block

landing.block.addcard

Adds a card to the block with modified content

landing.block.removecard

Removes a card from the block

landing.block.updateCards

Massively modifies the cards of the block

landing.block.getrepository

Retrieves a list of blocks from the repository

landing.block.getmanifestfile

Retrieves the manifest of the block from the repository

landing.block.getContentFromRepository

Retrieves the content of the block from the repository before adding it to the page

Embedding Locations

Method or Embedding Location

Description

LANDING_SETTINGS

Adds an application item to the settings menu of the website or page

LANDING_BLOCK_*

Adds an application item to the block editing actions

landing.repo.unbind

Removes the embedding location of the current application

Embedding the Knowledge Base

Method

Description

landing.site.bindingToGroup

Binds the Knowledge Base to a Social Network group

landing.site.bindingToMenu

Binds the Knowledge Base to a menu

landing.site.getGroupBindings

Retrieves the bindings of Knowledge Bases to groups

landing.site.getMenuBindings

Retrieves the bindings of Knowledge Bases to menus

landing.site.unbindingFromGroup

Unbinds the Knowledge Base from a Social Network group

landing.site.unbindingFromMenu

Unbinds the Knowledge Base from a menu