Update
With data.update you can update datasets from the Shopware Administration. The data handling guide explains how to find available datasets.
data.update()
update() sends new data for a registered dataset to the Shopware Administration.
Usage
ts
import { data } from "@shopware-ag/meteor-admin-sdk";
data
.update({
id: "sw-product-detail__product",
data: {
name: "My updated name",
},
})
.then(() => {
console.log("success");
});Parameters
| Name | Required | Description |
|---|---|---|
options | true | An object containing the id and the data to update |
Return value
Returns a promise without data.