Skip to main content
Update any of a web source’s crawl settings and its refresh cadence. Fields you leave out stay as they are. Crawl settings (rootUrl, path filters, depth, page caps, robots and document parsing) take effect on the next crawl, whether that is a scheduled refresh, a resyncWebSource, or resync: true on this call. Changing rootUrl re-points the source: the next crawl indexes the new site and removes the old site’s pages from the index. For the cadence, daily and weekly schedule automatic re-crawls; manual clears the schedule so the source is only re-crawled on demand. Cadence changes take effect immediately and reset the clock: the next scheduled run becomes now plus the new interval. Scheduled refreshes run on a rolling interval from the last completed run (there is no time-of-day control). Required fields: sourceId, plus at least one field to change Sending null for a field is rejected with 400; omit the field instead. Example request
Responses The updated source. When resync is true, the response also carries jobId, reports status as crawling, and includes effectiveMaxPages; poll the job with getJobStatus.
Errors
  • 400 when sourceId is missing, no field is being changed, a field is null, a limit is out of range, rootUrl is not a public website address, or refreshCadence is not daily, weekly, or manual.
  • 403 PLAN_FEATURE_NOT_INCLUDED when refreshCadence is daily or weekly and your plan does not include scheduled refresh, or resync is true and your plan does not include manual re-sync (Developer). Setting manual clears the schedule and is allowed on every plan.
  • 404 if the web source is not found.
  • 409 WEB_SOURCE_EXISTS when the new rootUrl is already registered on this index.
  • 409 BUILD_IN_PROGRESS when a crawl setting is changed while the source is crawling (queued or running). The cadence can be changed at any time. Retry once the crawl completes.
  • 429 USAGE_LIMIT_EXCEEDED when your organization’s monthly credit is exhausted or its billing is paused; the billing gate runs before the plan feature check.
  • 503 when the plan check is temporarily unavailable.