save_site
Saves a site entry to the config file and loads it into the running server so crawl_site, search_docs, and read_page can use it immediately. Requires replace:true to overwrite an existing site.
Instructions
Write a site entry to the config file and load it into the running server, so crawl_site, search_docs and read_page can use it at once. entry is a full entry by config field name, normally draft_site's entry with changes; fields left out are unset. Overwriting a configured site needs replace: true. Only the entry's lines change in the file. Refused while the site is crawling, and on servers started without -allow-config-writes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | The full site entry, by config field name | |
| replace | No | Overwrite an existing site (default: false; must be false for a new site) | |
| site_key | Yes | The key to save the entry under |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| written | Yes | ||
| replaced | Yes | ||
| site_key | Yes | ||
| next_actions | Yes |