Replaces all of a site's rules (the patterns go inside rules; omit it to keep the current ones) and, when provided, its schedule, then synchronises it: pages the new rules leave out are removed, new ones imported.
PUT replaces all the rules. Send the complete set under rules: patterns sent anywhere else are refused with unknown_field. Omit rules to keep the current ones, for example to change only the schedule; send {} to import the whole site. Omit schedule to keep the site’s current interval.
Use manual, daily, weekly, monthly, or an interval such as every_3_days, every_2_weeks or every_1_month. Intervals range from 1 to 90 days, 1 to 52 weeks or 1 to 12 months. Recurring schedules require a paid plan; Free workspaces can use manual. The API returns feature_not_available if a Free workspace requests a recurring schedule.
The site is synchronised right away: pages the new rules leave out are removed, and new ones are imported. The resource must be a site, or the call fails with conflict.
Patterns apply to the path of a page. See Rules for the syntax. Use Preview a site to try rules before you commit.
The complete new rules, which replace the old ones. Omit to keep the current rules, for example to change only the schedule. Send {} to import the whole site.
Show child attributes
rules.includestring[]default: []items: ≤ 50 items
Path patterns to keep, such as /docs/**. * is one level, ** everything below. Empty keeps the whole site.
rules.excludestring[]default: []items: ≤ 50 items
Path patterns to leave out, such as /blog/**.
rules.regexstringlength: ≤ 500 chars
Advanced: a regular expression on the path; matching pages are left out.
queued and processing: being read and indexed (pass wait=true or poll until it changes). ready: searchable. failed: see status_detail, then fix and call reindex.
data.status_detailstringnullrequired
data.tagsstring[]required
data.source_urlstringnullrequired
The page or site address, for url and site resources.
data.sourcestringnullrequired
Where it comes from, as shown with its citations.
data.siteobject | nullrequired
A site's page rules and schedule; null for other types.