Update products
Update products with specified sku and source values to replace existing field data with the data supplied in the request. When the update is processed, the merge strategy is used to apply changes to scalar and object type fields.
For array type fields, a new value can be appended to the existing list. For an object list, you can update a specific object by matching on a key field. The following fields are supported:
- attributes - match on code
- images - match on url
- routes - match on path
- links - match on type and sku
- bundles match on type and group
- configurations match on type and attributeCode
- externalIds match on type and origin
Note: Before submitting an update request, verify that the target entity exists using the products GraphQL query. Update operations do not verify that the entity exists. Requests targeting a nonexistent entity are accepted, but the update has no effect.
Headers
Authorization Bearer token
Use this header if the payload is compressed with gzip.
Request body
Example request
[
{
"sku": "MH01",
"source": {
"locale": "English"
},
"name": "Kangaroo Hoodie",
"slug": "kangaroo-hoodie.html",
"description": "A kangaroo hoodie for all seasons",
"shortDescription": "A hoodie for all seasons with a kangaroo pocket",
"status": "ENABLED",
"visibleIn": [
"CATALOG"
]
}
]Response
All items accepted and will be processed asynchronously