Documentation · API reference
PUT/api/v1/alert-settings

Save quiet hours

Save quiet hours, how often, and whether to say when something is fine again.

What to send

object

The answer

Status 200

object

Asking

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