Update a retailer product attribute value

PATCH /api/rest/v1/retailer/products/{code}/attribute/{attribute_code}

This endpoint allows you to update an attribute value for a retailer product.

Path parameters

Body Required

  • identifier string Required

    Child product identifier, i.e. child sku. A unique value to reference a single product.

  • values object

    Product attributes values, i.e., 'price', 'quantity', 'special_price', 'special_price_from_date', 'special_price_to_date'

    Hide values attribute Show values attribute object
    • attributeCode array[object]
      Hide attributeCode attributes Show attributeCode attributes object
      • locale string

        Locale code of the product value

      • data object

        Product value

Responses

  • Created

    Hide headers attribute Show headers attribute
  • Unprocessable entity

    Hide response attributes Show response attributes object
    • code integer

      HTTP status code

    • message string

      Message explaining the error

PATCH /api/rest/v1/retailer/products/{code}/attribute/{attribute_code}
curl \
 -X PATCH https://content.winkelstraat.nl/api/rest/v1/retailer/products/{code}/attribute/{attribute_code} \
 -d '{"identifier":"top_child_size_m","values":{"quantity":[{"data":15}]}}'
Request example
{
  "identifier": "top_child_size_m",
  "values": {
    "quantity": [
      {
        "data": 15
      }
    ]
  }
}
Response examples (422)
422
"Property \"labels\" expects an array as data, \"NULL\" given. Check the API reference documentation."
{
  "documentation": {
    "href": "http://api.akeneo.com/api-reference.html"
  }
}
Response examples (422)
{
  "code": 42,
  "message": "string"
}