commercetools · Schema

ProductUpdate

Request body for updating a product using versioned update actions.

CommerceComposable CommerceE-CommerceGraphQLRESTSDK

Properties

Name Type Description
version integer Current version of the product for optimistic concurrency control.
actions array List of update actions to apply to the product.
View JSON Schema on GitHub

JSON Schema

commercetools-productupdate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ProductUpdate",
  "title": "ProductUpdate",
  "type": "object",
  "description": "Request body for updating a product using versioned update actions.",
  "required": [
    "version",
    "actions"
  ],
  "properties": {
    "version": {
      "type": "integer",
      "description": "Current version of the product for optimistic concurrency control."
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "An update action object with an 'action' discriminator field."
      },
      "description": "List of update actions to apply to the product."
    }
  }
}