Skip to Content
Docs

Save a Website source's entries, skips, link setting and sync schedule

POST
/api/website

Save a Website source's entries, skips, link setting and sync schedule. Applies at the next sync. An address the save adds is checked as in /api/website/pages: one that isn't a web address (user:password@ credentials, a malformed host, a control character) is a 400 with code invalid_address, as is a new skip rule with a control character; a new path with one is a 400 with code invalid_config. What the source already stores is saved as it is.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
entries*array<>

What the source fetches: {url, mode: page|site, max_pages, path_prefix, include_subdomains, discovery: auto|sitemap|links, sitemap_url}

keep_links?boolean

Keep the URL of links inside sentences in page text; left out, the stored setting is kept

skip?array<string>

Pages (url) or sections (https://host/path/*) to leave out; left out, the stored list is kept, and [] clears it

source_id*string

Source ID

sync_frequency?string

never, daily, weekly or monthly

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/website' \  -H 'Content-Type: application/json' \  -d '{  "entries": [    {}  ],  "source_id": "string"}'
Example Response200
Empty