Skip to content

Partial Content Update

PATCH
View MD

This endpoint is ideal for making small, frequent updates to existing objects, such as changing a product price, description, or availability. You only need to send the identity of the object and the specific fields you want to add or modify.

  • This operation is incremental and does not affect fields you omit from the request.
  • It cannot be used to create new objects. If an identity is not found, the request returns an error.
  • You cannot change an object’s type.
  • Updating prices or stock levels.
  • Adding a promotional label or updating a product description.
  • Changing availability status.
  • Synchronizing real-time data from your database to the search index without a full reindex.

The batch limit for this endpoint is 300 objects per request.

The root of your request body must be a JSON object containing a single key, objects.

ParameterTypeRequiredDescription
objectsArrayAn array of one or more objects to be partially updated.

Each object in the objects array must contain an identity and the fields you want to change.

ParameterTypeRequiredDescription
identityStringThe unique identifier of the object you want to update.
fieldsObjectA key-value map of attributes to add or modify.
nestedArrayAn array of nested objects. Sending this key replaces the entire existing nested array for the object.

The examples show how to prepare and send a request to the API endpoint.

Authentication is required for all requests. The code demonstrates how to construct the necessary headers, including Date and Authorization. The Authorization header requires a dynamically generated HMAC signature. For a detailed explanation of how to create this signature, refer to the main API Authentication guide.

HTTP StatusDescription
400 Bad RequestThe request structure is invalid, the JSON is malformed, or an object was not found.
413 Payload Too LargeThe request exceeds 5 MB, or 10 MB if compressed. Reduce batch size or enable compression.
429 Too Many RequestsThe rate limit has been exceeded. Check the Retry-After header and see the Throttling docs.