Skip to main content
POST
Apply a config-as-code document (idempotent upsert by config_key)

Authorizations

Authorization
string
header
required

An organization API key (obs_pub_…) sent as Authorization: Bearer <key>. Each key carries scopes; an endpoint lists the scope it needs. read:change_events is reserved: keys can carry it, but no endpoint needs it yet.

Scopes

write:config

Query Parameters

dryRun
boolean
default:false

Plan only: return the diff and change nothing. dry_run is accepted too.

prune
boolean
default:false

Also delete config-managed objects that the document no longer names.

verbose
boolean
default:true

true (the HTTP default) puts every object the document names in the diff; false leaves out unchanged entries, so the diff shows only changes (summary still counts everything).

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.

dry_run
boolean
pruned
boolean
verbose
boolean

false when the diff leaves out unchanged entries.

summary
object
diff
object

Per bucket, one entry per object the document defines (and, with prune, each pruned object). With verbose=false, entries whose action is unchanged are left out (summary still counts them). Existing metrics the document only references are not here: see referenced.

referenced
object[]

Existing metrics of the organization that the document references (SLO metric, page or service metrics) without defining them. They are never created or changed.

warnings
object[]