Skip to content

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

NameRequiredDescription
optionstrueAn object containing the id and the data to update

Return value

Returns a promise without data.

Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)