Documentation · API reference
PUT/api/v1/sites/{site}/reports

Put site

Parameters

sitein the address
neededThe site's id or name

What to send

ReportSetting Who is sent a site's report, or the digest of every site, and how often.

every
stringneeded`off`, `weekly` or `monthly`.
sends
stringWhen it goes out, in words. Set by the server.
to
list of string

The answer

Status 200

ReportSetting Who is sent a site's report, or the digest of every site, and how often.

every
stringneeded`off`, `weekly` or `monthly`.
sends
stringWhen it goes out, in words. Set by the server.
to
list of string

Asking

With your token from Settings
curl -X PUT https://tidekeeper.eu/api/v1/sites/example.org/reports \
    -H "Authorization: Bearer $TIDEKEEPER_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"every": "…"}'
With your token from Settings
const answer = await fetch("https://tidekeeper.eu/api/v1/sites/example.org/reports", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"every": "…"}),
}).then((r) => r.json());