commercetools icon

commercetools

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

Actions671

Associate Quote Request → Update QuoteRequest in BusinessUnit by Key as Associate

AI-generated

Summary

Update an existing QuoteRequest in a specified BusinessUnit as an associate by its key, applying one or more update actions.

Inputs

  • Associate Quote Request Key (required) — The key of the QuoteRequest within the BusinessUnit to update.
  • Associate ID (required) — The ID of the associate performing the update, used for permission and context.
  • Quote Request Key (required) — The unique key identifying the QuoteRequest to update.
  • Version (required) — The current version number of the QuoteRequest for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the QuoteRequest; if specified and non-empty, overrides the Actions (UI) input.
  • Actions (UI) — A collection of predefined update actions selected and configured in the UI, such as changing the customer, modifying the state, setting custom fields or types, or transitioning the state.

Output shape

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

The operation sends an HTTP request to the commercetools API endpoint corresponding to the QuoteRequest keyed within the BusinessUnit and associated with the given Associate ID, passing the specified version and update actions. The API response includes the updated QuoteRequest data or an error if the update fails (e.g., due to version conflict or permission issues).

Examples

Example 1: Update the state of a QuoteRequest as an associate

Specify the BusinessUnit associate ID, the QuoteRequest key and current version, then set the 'ChangeQuoteRequestState' action to a new state.

Links

Discussion