commercetools icon

commercetools

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

Actions671

Zone → Update Zone by ID

AI-generated

Summary

Update an existing commercetools Zone by its ID, specifying the version and one or more update actions to apply changes.

Inputs

  • Zone ID (required) — The unique identifier of the Zone to update.
  • Version (required) — The current version number of the Zone to ensure concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply directly, overriding the UI actions if provided.
  • Actions (UI) — A set of discrete update actions built through the UI, such as adding or removing locations, changing name, setting description, or setting key. Multiple actions can be combined.

Output shape

a single record representing the updated Zone object in JSON format

The node returns the updated Zone resource as JSON. Input actions can be supplied either as raw JSON or through the UI collection, with raw JSON taking precedence if provided. Errors during update will throw unless 'continue on fail' is enabled.

Examples

Example 1: Updating a Zone to add a location and change its name

Provide the Zone ID, current Version, and use the Actions (UI) to add a new location and set a new name.

Links

Discussion