commercetools icon

commercetools

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

Actions671

Store → Update Store by ID

AI-generated

Summary

Update a commercetools store by its unique Store ID, specifying the current version for concurrency control and applying one or multiple update actions to modify store attributes.

Inputs

  • Store ID (required) — The unique identifier of the store to update.
  • Version (required) — The current version number of the store for optimistic locking.
  • Actions (JSON) — A raw JSON array of update actions to apply to the store, which overrides the UI-provided actions if not empty.
  • Actions (UI) — A collection of individual update actions selectable and configurable through the user interface, such as adding/removing countries or channels, setting names, or changing custom fields.

Output shape

a single JSON object representing the updated store data as returned by the commercetools API

The response contains the full updated store resource JSON. Errors during the operation will throw exceptions unless 'Continue On Fail' is enabled, which returns error details per item.

Examples

Example 1: Update store's name and add a country

Provide the Store ID and current Version, then use the UI Actions to set a new name and add a country to the store.

Links

Discussion