commercetools icon

commercetools

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

Actions671

Shipping-method → Update ShippingMethod by ID

AI-generated

Summary

Update a commercetools Shipping-method by specifying its ID and current version, applying one or more update actions to modify its properties.

Inputs

  • Shipping-method ID (required) — The unique identifier of the Shipping-method to update.
  • Version (required) — The current version of the Shipping-method to ensure update conflict control.
  • Actions (JSON) — A JSON array of update actions to apply, overriding UI actions if provided.
  • Actions (UI) — One or more update actions selectable and configurable via the UI, such as adding/removing shipping rates or zones, changing active status, name, default flag, tax category, custom fields, and others.

Output shape

a single JSON object representing the updated Shipping-method resource

Requires the correct current version number to prevent update conflicts. Actions can be provided either as raw JSON or via the UI; JSON overrides UI if non-empty.

Examples

Example 1: Update the name and active status of a Shipping-method by ID

Set Resource to 'Shipping-method', Operation to 'Update ShippingMethod by ID', provide the Shipping-method ID and current version, then add 'ChangeName' and 'ChangeActive' actions in the UI or as JSON to update these fields.

Links

Discussion