Create or update search overrides in bulk
POST/pcm/catalogs/search/overrides/bulk
Create or update the search overrides of several products in one request. Each entry in data is one product: its id and the same attributes as a single update. Each product is written on its own, with the same rules as a single update. Fields you leave out stay unchanged. Leave out applies_to_releases_created_until and the stored instant is removed. Leave out persist_across_releases and it reads back as true. Leave out omitted_catalog_ids to keep the stored list.
A well-formed request returns 200 even when some products fail. results has one entry per product, in request order. A stored product returns its id and status success. Use GET to read the stored override. A product that fails returns status failed, the attributes you sent, and an error. A failed product is not stored, and it does not stop the other products. Shoppers see a stored override once search catches up; the response does not wait for that.
Send from 1 to 100 products, each product id once. An empty data, more than 100 products, or the same product id twice returns 400, and no product is stored.
Request
Responses
- 200
- 400
- 500
Each product was stored or failed on its own
The request is empty, has more than 100 products, or names a product twice. No product is stored.
Internal server error. There was a system failure in the platform.