Object Blocks: 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.
Blocks are the fundamental elements of a website page in Bitrix24. For instance, a block can contain text, an image, a feedback form, or a news list.
The methods landing.block.* manage the content of already placed blocks and work with templates from the repository. You can change text, images, styles, add cards, and upload files.
Quick navigation: all methods
User documentation: Create and configure your Bitrix24 site
How to Work with Blocks
- Retrieve the list of blocks on the page using the landing.block.getlist method. You will need the page identifier
lid. - Select the desired block and obtain its data using the landing.block.getbyid or landing.block.getcontent methods.
- Make changes. Use point methods (
updatenodes,updateattrs) for partial updates orupdatecontentfor a complete content replacement. - If you need to add or modify cards, such as list items, use the methods from the Block Cards group.
- Publish the page using the landing.landing.publication method to make the changes visible to visitors.
Interaction with Other Objects
Page. The page identifier lid is mandatory for all operations. You can obtain it using the landing.landing.getList method.
Page Methods. The methods in the Blocks on Page section add, move, hide, and delete blocks on the page. The landing.block.* methods modify the content and configure a specific block.
Manifest. The structure of the block, available fields, and settings are described in the manifest. You can obtain the manifest of a placed block using the landing.block.getmanifest method, and the template from the repository using the landing.block.getmanifestfile method.
Features of Operation
Drafts. Most modification methods work with the draft of the page. For published pages, use the block identifiers from the edit mode edit_mode.
Publication. Changes in the draft are not visible on the site until the page is published using the landing.landing.publication method.
Files. The landing.block.uploadfile method only uploads a file and associates it with the block. To display the file in the content, additionally call landing.block.updatenodes.
Point Update. To modify individual elements, use updatenodes, updateattrs, or updateStyles. A complete replacement via updatecontent requires passing the entire content of the block.
Overview of Methods
Scope:
landingWho can perform methods: depending on the method
Block Cards
|
Method |
Description |
|
Adds a card to the block |
|
|
Clones a block card |
|
|
Massively updates block cards |
|
|
Removes a card from the block |
Content and Parameters of the Block
|
Method |
Description |
|
Modifies the content of the block nodes |
|
|
Changes the attributes of the block nodes |
|
|
Modifies the styles of the block |
|
|
Completely replaces the content of the block |
|
|
Changes the node tag |
|
|
Modifies the anchor link of the block |
|
|
Uploads and associates a file with the block |
Retrieving Block Data
|
Method |
Description |
|
Returns the list of blocks on the page |
|
|
Returns block data by ID |
|
|
Returns the content of the block |
|
|
Returns the manifest of the placed block |
Block Repository
|
Method |
Description |
|
Returns the list of templates from the repository |
|
|
Returns the manifest of a template from the repository |
|
|
Returns the content of a template before adding it to the page |