@plentymarkets/shop-api / doSaveBlocks
Function: doSaveBlocks() ​
Method doSaveBlocks - Used to save the blocks for a page/category/item.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: DoSaveBlocksParams
url: url of the immutable page. entityType: category/item/immutable. entityId: id of the category/item. blocks: blocks JSON.
Returns ​
Category facets.
Remarks ​
- Calls /rest/storefront/blocks
- Method should be used to save the blocks for a page/category/item.
Example ​
ts
const { data } = await useSdk().plentysystems.doSaveBlocks({
identifier: "index",
entityType: "immutable",
blocks: [],
});