commercetools icon

commercetools

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

Actions671

Subscription → Update Subscription by Key

AI-generated

Summary

Update a commercetools subscription identified by its unique key by specifying its version and a set of update actions.

Inputs

  • Subscription Key (required) — The unique string key of the subscription to update.
  • Version (required) — The expected current version of the subscription for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the subscription. If provided and not empty, it overrides any UI-defined actions.

Output shape

a single JSON object representing the updated subscription resource as returned by the commercetools API

Requires the subscription key and version for the update; the update actions must be valid commercetools subscription update actions specified in JSON array format. Any error from the API will be thrown unless 'continue on fail' is enabled, in which case error details are returned in the output item.

Links

Discussion