commercetools icon

commercetools

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

Actions671

Shopping-list → Update ShoppingList by ID

AI-generated

Summary

Update a specific Shopping-list in commercetools by its ID, applying one or more update actions to modify it.

Inputs

  • Shopping-list ID (required) — The unique ID of the Shopping-list to update.
  • Version (required) — The current version number of the Shopping-list, required for concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the Shopping-list; if provided and non-empty, this overrides the UI-based Actions input.
  • Actions (UI) — One or more update actions selectable and configurable via the UI, such as adding line items, changing quantities, setting custom fields, or changing names.

Output shape

a single JSON object representing the updated Shopping-list resource returned by the commercetools API

The updated Shopping-list object returned contains the new state after applying the specified actions; error handling includes throwing on failure unless 'continueOnFail' is enabled, in which case the error JSON is returned.

Links

Discussion