commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Store → Update Store by Key

AI-generated

Summary

Update a commercetools Store identified by its unique store key using specified update actions.

Inputs

  • Store Key (required) — The unique key of the store to update.
  • Version (required) — The current version of the store to ensure concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the store. When provided, this overrides the Actions (UI) input.
  • Actions (UI) — A user-friendly UI collection of update actions to apply to the store, such as adding/removing countries or channels, setting custom fields, and changing product selections. Ignored if Actions (JSON) is provided.

Output shape

a single record representing the updated store object as returned from the commercetools API

Requires specifying the store key and version for concurrency; update actions can be provided either as raw JSON array or through the UI collection. On success, the updated store data is returned in JSON format. Errors will be thrown if the update fails.

Examples

Example 1: Update the name and add a country to a store identified by its key

Provide the store key, current version number, and set Actions (UI) to include 'SetName' with new localized names and 'AddCountry' with the country to add.

Links

Discussion