Run Indexer (Azure Cognitive Search REST API)
In addition to running periodically on a schedule, an indexer can also be invoked on demand via the Run Indexer operation.
POST https://[service name].search.windows.net/indexers/[indexer name]/run?api-version=[api-version] Content-Type: application/json api-key: [admin key]
|service name||Required. Set this to the unique, user-defined name of your search service.|
|indexer name||Required. The request URI specifies the name of the indexer to run.|
|api-version||Required. The current version is
The following table describes the required and optional request headers.
|Content-Type||Required. Set this to
|api-key||Required. The api-key is used to authenticate the request to your Search service. It is a string value, unique to your service. Get requests about objects in your service must include an api-key field set to your admin key (as opposed to a query key).|
You can get the api-key value from your service dashboard in the Azure portal. For more information, see Find existing keys.
Status Code: 202 Accepted is returned for a successful response.