ProductMetadata
Update product attribute metadata
Update existing product attribute metadata with new values. When the update is processed, the merge strategy is used to apply changes to scalar and object type fields. The replace strategy is used to apply changes for fields in an array.
Note: Before submitting an update request, verify that the target entity exists using the attributeMetadata GraphQL query. Update operations do not verify that the entity exists. Requests targeting a nonexistent entity are accepted, but the update has no effect.
patch/v1/catalog/products/metadata
Headers
Authorizationstring required
Authorization Bearer token
Content-Type'application/json' required
Content-Encoding'gzip'
Use this header if the payload is compressed with gzip.
Request body
Example request
[
{
"source": {
"locale": "English"
},
"label": "Attribute Name",
"dataType": "TEXT",
"filterable": true,
"sortable": true,
"searchable": true
}
]Response
All items accepted and will be processed asynchronously