Skip to main content
PATCH
Change freshness, thresholds and outcome settings without a new version

Authorizations

Authorization
string
header
required

An organization API key. Keys carry a role (read_write or read_only) and may be restricted to a namespace prefix such as acme/*, or to one namespace such as acme/prod/tenant_1. A prefix matches on a / boundary: acme/prod/tenant_1* covers acme/prod/tenant_1 and everything under acme/prod/tenant_1/, never acme/prod/tenant_12.

Headers

Idempotency-Key
string

Returns the original response verbatim while the node still caches it. Correctness never depends on it.

Minimum string length: 1

Path Parameters

ns
string
required

A namespace name, or a template prefix ending in /* (§7.7), with any / sent as %2F: acme%2Fprod%2Ftenant_123 or acme%2Fprod%2F*.

A namespace name, or a template prefix: a namespace path ending in /*, such as acme/prod/*, which every namespace under acme/prod/ inherits judgments from (§7.7). Up to 256 bytes.

Required string length: 1 - 256
Pattern: ^[A-Za-z0-9._:/-]+(/\*)?$
name
string
required

A judgment, attribute or threshold name. Names are path segments in field references, so they never contain ..

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_-]+$

Body

application/json

At least one of freshness, thresholds and outcomes.

freshness
object
required

Settings, not part of the definition. Changing them creates no version.

thresholds
object

Replaces the judgment's whole set of named thresholds; {} removes them all. Applies at the next read, with no evaluation and no new version.

outcomes
object

Replaces how outcomes are read. The next nightly fit and every report use it; no version is created.

confirm
boolean
default:false

Required to switch to on_change, which starts a backfill.

Response

The settings were applied, or an estimate was returned.

judgment
object
required
job_id
string

The backfill started by a confirmed switch to on_change.