---
title: "Triggers"
url: "https://developer-qual.migros.ch/apis/triggers-8/versions/9194878c-8d9d-4f22-8968-77a3d9c881c4"
---

# Triggers

OpenAPI specification document.

```json
{"components":{"parameters":{},"responses":{"400":{"description":"If the request parameters are invalid."}},"schemas":{},"securitySchemes":{"Kong-Api-Key":{"description":"Kong key-auth authentication","in":"header","name":"X-Api-Key","type":"apiKey"},"basicAuth":{"scheme":"basic","type":"http"}}},"info":{"contact":{"email":"arg_mgb-udp-products-services@mgb.ch","name":"MGB-UDP-Products-Services"},"description":"Routes allowing third-party applications to trigger imports","title":"Triggers","version":"8"},"openapi":"3.0.0","paths":{"/migros/products/v8/trigger/declaration/elasticsearch":{"delete":{"description":"This is an internal route and doesn't necessarily follow API versioning.","operationId":"trigger-declaration-elasticsearch-delete","parameters":[{"description":"The declarations of the given product IDs will be deleted in Elasticsearch, separated by commas.","in":"query","name":"product-ids","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Returned when successful."},"400":{"$ref":"#/components/responses/400"}},"summary":"Triggers deletion of declarations in elasticsearch for given product-ids.","tags":["Triggers"]}},"/migros/products/v8/trigger/product/elasticsearch/queue/{id}":{"post":{"description":"This is an internal route and doesn't necessarily follow API versioning.","operationId":"trigger-product-elasticsearch-queue","parameters":[{"description":"ID of a product to be queued for elasticsearch reindexing","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"A comma separated list of partial-fields that need to be reindexed. If not set, the full product will be reimported","in":"query","name":"partial_fields","schema":{"type":"string"}},{"description":"Priority for the import (between 0 and 10, 10=highest priority)","in":"query","name":"priority","schema":{"default":2,"maximum":10,"minimum":0,"type":"integer"}},{"description":"Whether the queuing should check if the product is in queue already (false) or not (true).","in":"query","name":"force_queue","schema":{"default":false,"type":"boolean"}}],"responses":{"204":{"description":"Returned when successful."},"400":{"$ref":"#/components/responses/400"}},"summary":"Triggers queueing a product to be reindexed in elasticsearch.","tags":["Triggers"]}},"/migros/products/v8/trigger/product/{id}":{"post":{"description":"This is an internal route and doesn't necessarily follow API versioning.","operationId":"trigger-product-import","parameters":[{"description":"ID of a product to trigger the import for","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Priority for the import (between 0 and 10)","in":"header","name":"Trigger-Priority","schema":{"default":2,"maximum":10,"minimum":0,"type":"integer"}},{"description":"Whether the queuing should check if the product is in queue already (false) or not (true).","in":"header","name":"Trigger-Force","schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"description":"Returned when successful."},"400":{"$ref":"#/components/responses/400"}},"summary":"Triggers a full import of a product.","tags":["Triggers"]}},"/migros/products/v8/trigger/reactions/ratings/product/{product_id}":{"post":{"description":"After the import, the product is queued for partial update (ratings field only).\n\nThis is an internal route and doesn't necessarily follow API versioning.","operationId":"trigger-ratings-import","parameters":[{"description":"ID of a base product to trigger the import for","in":"path","name":"product_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Returned when successful"}},"summary":"Triggers the import of ratings from the reactions API for a product.","tags":["Triggers"]}},"/migros/products/v8/trigger/rialto/product/{id}":{"post":{"description":"This is an internal route and doesn't necessarily follow API versioning.","operationId":"trigger-product-rialto-update","parameters":[{"description":"ID of a product to trigger the import for","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Returned when successful."},"400":{"$ref":"#/components/responses/400"}},"summary":"Triggers a re-import of a product in Rialto by sending a product\nupdated message to MOM with a high priority.","tags":["Triggers"]}}},"security":[{"Kong-Api-Key":[],"basicAuth":[]}],"servers":[{"description":"Public Kong Gateway URL","url":"https://api-qual.migros.ch"}],"tags":[{"name":"Triggers"},{"name":"mapi"}],"x-active-from":"01-01-2024","x-company":"migros","x-edm-domain":"products","x-eol":"31-12-2049","x-headmatter":{"readable_by":"*"},"x-kong-route-defaults":{"protocols":["https"],"strip_path":false},"x-kong-service-defaults":{"connect_timeout":5000,"read_timeout":15000,"retries":1,"write_timeout":5000},"x-leanix-id":"350641a5-55a2-4641-8332-76d32846eb56","x-link-get-access":"https://forms.office.com/e/zhzbEqAQ26","x-link-get-support":"https://teams.microsoft.com/l/channel/19%3Aa7851e50d0194268ba0c7a0d7a63403b%40thread.tacv2/2.%20Support%20%F0%9F%92%A1?groupId=58b919a5-7d36-47f3-a77a-03cfd051098a&tenantId=35aa8c5b-ac0a-4b15-9788-ff6dfa22901f"}
```
