Apply config
Validates the whole document, then upserts its services, metrics, SLOs and pages. ?dryRun=true returns the diff and changes nothing (useful on pull requests); ?prune=true also deletes config-managed objects absent from the document. Body: YAML (text/yaml or text/plain) or JSON, at most 1 MB.
Top-level keys other than apiVersion, metrics, services and pages are ignored and reported in warnings (e.g. incidents, managed through the API). Warnings never block an apply.
A new metric needs all four thresholds fields (except heartbeat, alert, manual and third_party metrics); a missing one fails with its path, e.g. metrics[0].thresholds.healthy_value. On update, omitted fields keep stored values.
A metric’s agent names an Observer Agent of the organization (GET /agents lists, POST /agents creates). An unknown name, or one two agents share, fails validation (agent_id names it by id instead). An agent-run metric that names no agent is accepted with a warning and gets no data until one is assigned. Each metric entry in diff shows its resolved agent.
Pages keep per-metric console settings (public label, uptime bar); the document sets which metrics a page shows, their group and order. A page entry may also set page settings (title, layout, timezone, locale, subscriptions, branding, footer links, group order and summary, SEO, a theme preset, access_mode public); omitted settings keep their current value. A page’s diff entry lists metrics added, removed and changed, and the settings that change.
A metric reference (an SLO’s metric, a page’s or service’s metrics) names a metric in the document or an existing one of the organization, by config_key or, for a console-made metric, the key GET /config/export?all=true gives it. Referenced-only metrics are listed in referenced and never created, changed or pruned. A reference matching nothing fails validation.
A heartbeat metric (source_type: heartbeat) must not name an agent (validation fails). Its thresholds are ignored: they derive from period_seconds and grace_seconds. The ping URL is never in the document (GET /metrics//heartbeat returns it to keys with write:config).
Authorizations
Query Parameters
Body
The ConfigDocument as YAML.
Response
Applied, or planned when dryRun is set. warnings is always present (empty when there is nothing to report); each entry is { path, message }: ignored top-level keys, agent-run metrics that name no agent, and metrics assigned to an agent older than their check type (or config) needs.

