@plentymarkets/shop-api / doSaveBlocks
Function: doSaveBlocks() ​
Defined in: api/doSaveBlocks/index.ts:30
Method doSaveBlocks - Used to save the blocks for a page/category/item.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
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: []
});