Para agentes de IA: markdown de esta página — /docs-content-en/entities/block-repository.md índice de la documentación — /llms.txt
Los artículos de la documentación están disponibles actualmente en inglés.
Saved blocks
Block templates in the "My blocks" section of the catalog: a configured page block saved as a template that every editor of the Bitrix24 account can add to their pages.
Bitrix24 API: landing.landing.favoriteBlock, landing.landing.unFavoriteBlock
Scope: landing
Operations
- Save a block to "My blocks" —
POST /v1/pages/:pageId/blocks/:blockId/favorite - Delete a template from "My blocks" —
DELETE /v1/block-repository/favorites/:blockId
Key fields
| Field | Description |
|---|---|
blockId |
Template ID in "My blocks". Returned in the response of saving a block and differs from the ID of the source page block |
code |
Template code in the form sourceCode@blockId, for example 01.big_with_text@29417. The template appears under this code in the block catalog |
name |
Template name. Passed when saving the block |
sections |
Catalog sections the template goes into. Passed when saving the block. Without the field, the template goes into the section of the source block |
Before you start
- A template is shared across the account. Every editor of the Bitrix24 account sees a saved block in the catalog. It is not a personal bookmark.
- The template ID and the page block ID are different numbers. Deletion accepts only the
blockIdfrom the save response. The ID of a regular page block returns404 ENTITY_NOT_FOUND. - You can delete only your own template. Only a template saved by the same Bitrix24 user the key was issued for can be deleted.
- Deletion is irreversible and does not touch the page. The template disappears from the catalog and cannot be restored — save the block again. The source block on the page stays unchanged after the template is deleted.
Typical scenario
- Find the block on the page:
GET /v1/pages/:pageId/blocks. - Save it to "My blocks":
POST /v1/pages/:pageId/blocks/:blockId/favoritewith{"name": "Promo cover"}. The response contains the templateblockIdandcode. - Find the template in the catalog by
code:GET /v1/block-repository. - Delete a template you no longer need:
DELETE /v1/block-repository/favorites/:blockId.
Limits
| Limit | Value |
|---|---|
| Templates per call | one: saving and deletion work with a single block |
| Rate limit | shared across the Vibecode API — see Limits and optimization |