commercetools icon

commercetools

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

Actions671

Subscription → Update Subscription by ID

AI-generated

Summary

Update a commercetools subscription by specifying its unique ID and current version, applying a list of update actions to modify its properties.

Inputs

  • Subscription ID (required) — The unique identifier of the subscription to update.
  • Version (required) — The current version of the subscription for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the subscription, overriding any UI-configured actions when provided.

Output shape

a single record representing the updated subscription object returned from the commercetools API

Requires valid subscription ID and version; errors thrown if update fails. Actions must be provided as a JSON array; no pagination involved.

Examples

Example 1: Update subscription with provided actions

Provide the subscription ID, the latest version number, and a JSON array of actions specifying changes to apply.

Links

Discussion