commercetools icon

commercetools

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

Actions671

State → Delete State by Key

AI-generated

Summary

Delete a commercetools state identified by its unique key and version to ensure concurrency control.

Inputs

  • State Key (required) — The unique key of the state to delete.
  • Version (required) — The current version of the state to delete, used for optimistic concurrency control.

Output shape

a single JSON object with the response from the commercetools API confirming deletion or error details.

Requires a valid State Key and Version number; the version is passed as a query parameter for deletion. The output includes the API's deletion response. Errors are returned as JSON if continueOnFail is enabled.

Examples

Example 1: Delete a state with key "my-state" at version 3

Set resource to State, operation to Delete State by Key, State Key to 'my-state' and Version to 3.

Links

Discussion