Skip to Content
Docs

POST /api/website/refresh

POST
/api/website/refresh

Re-fetch one page of a Website source now; if it can't be fetched, its content is kept. A page found by a site's crawl that now leads outside the site's scope or to a skipped address is removed, as the next sync would drop it (the task's failed event carries reason out_of_scope). A 500 with code queue_failed when the task couldn't be queued.

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
file_path*string

Tree path of the page

source_id*string

Source ID

url?string

The page's address, as its tree leaf shows it; when given, the page is found by it wherever a sync moved it

Response Body

Success

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