commercetools icon

commercetools

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

Actions671

Business Unit → Update BusinessUnit by Key

AI-generated

Summary

Update a commercetools Business Unit by its unique key, specifying the current version and a list of update actions to apply.

Inputs

  • Business Unit Key (required) — The unique key identifying the Business Unit to update.
  • Version (required) — The version number of the Business Unit to ensure concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply, which overrides the Actions (UI) if provided.
  • Actions (UI) — A collection of individual update actions to apply, such as adding/removing addresses, associates, stores, changing name, status, or setting custom fields. Multiple actions can be added.

Output shape

a single JSON object representing the updated Business Unit.

If the update fails (e.g., version conflict or invalid actions), the node will error unless 'Continue On Fail' is enabled, in which case an error object is returned instead.

Examples

Example 1: Update a Business Unit by key with new addresses and changed name

Provide the business unit key, specify the current version, then use Actions (UI) to add addresses and change the name.

Links

Discussion