Method: projects.locations.collections.dataStores.siteSearchEngine.recrawlUris
Stay organized with collections
Save and categorize content based on your preferences.
Request on-demand recrawl for a list of URIs.
HTTP request
POST https://discoveryengine.googleapis.com/v1/{siteSearchEngine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:recrawlUris
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
siteSearchEngine |
string
Required. Full resource name of the SiteSearchEngine , such as projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine .
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"uris": [
string
],
"siteCredential": string
} |
Fields |
uris[] |
string
Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in siteSearchEngine .
|
siteCredential |
string
Optional. Credential id to use for crawling.
|
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the siteSearchEngine
resource:
discoveryengine.siteSearchEngines.recrawlUris
For more information, see the IAM documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-03 UTC."],[[["This API endpoint allows you to request an on-demand recrawl for a list of URIs, specified within the request body."],["The HTTP request is a `POST` request to a specific URL using gRPC Transcoding syntax, targeting a `siteSearchEngine` resource."],["The request body requires a list of `uris` to be recrawled, with a maximum limit of 10,000, and also optionally a `siteCredential` field."],["Successful requests return an `Operation` instance in the response body."],["To use this endpoint, you need the `discoveryengine.siteSearchEngines.recrawlUris` IAM permission and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]