Skip to main content
PATCH
Change budget, pinning and default engine

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

One key per logical request, reused only on its retries. A key belongs to one request: within your organization, the same method, path, query and body. For 24 hours after a successful response, a request with the key and the same body gets that response back verbatim, with Idempotent-Replayed: true, and runs nothing. Only a successful response is kept, so the retry of a request that failed runs again. While the first request runs or its response is kept, the key with a different request is idempotency_key_reused (422). A request sent while one with its key is still running is rate_limited with Retry-After: 1, without running: retry it to get the first one's response. In the rare case the key can't be checked, the request runs as if it had none.

Required string length: 1 - 255

Path Parameters

ns
string
required

The namespace name, with any / sent as %2F. Up to 256 bytes. / separates levels of the hierarchy, as in acme/prod/tenant_123. Never exactly . or .., which a URL path can't carry.

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

Body

application/json
budget
object | null

Null removes the budget.

pinned
boolean

Keep the namespace resident in cache once it is loaded, so idle time does not make its queries cold. The first query after pinning, or after a node restart, can still be cold; warm the namespace to load it. Billed per GiB-month as a pinned namespace.

default_engine
object | null

Fills in engine on judgment create when omitted; never changes existing judgments. Must be active in GET /engines, or the request is refused with engine_version_unavailable. Setting it checks no recipe, so it never warns about images; a create that takes it warns as any create does. Null removes it.

fanout
object

How fan-out runs in this namespace. Every key is optional in a PATCH, and the others keep their values.

Response

The namespace with the new settings.

name
string
required

Up to 256 bytes. / separates levels of the hierarchy, as in acme/prod/tenant_123. Never exactly . or .., which a URL path can't carry.

Required string length: 1 - 256
Pattern: ^(?!\.\.?$)[A-Za-z0-9._:/-]+$
created_at
string<date-time>
required

RFC 3339, UTC.

budget
object | null
required
budget_paused
boolean
required

True while evaluation is paused by the budget, because spend reached it or the next engine request would have passed it. Meanwhile a changed document's answer reads stale with stale_reason judging_paused, and a document never judged reads unavailable; on_change judgments judge them once the budget is raised or the next billing period starts.

pinned
boolean
required
default_engine
object | null
required

An engine and its version, which must be active in GET /engines; any other is refused with engine_version_unavailable. The version is an exact version, which never changes, or current for an engine that is not pinned. Today the active versions are jev current and gpt-6-luna current; pplx-decider has no active version yet. current runs whatever model the provider serves now and records the epoch of behaviour behind each answer in its engine_version, such as current+2026-09-24.1. There are no other aliases. Engines differ in whether they read images (limits.images in GET /engines) and in their multiple on the bill (jev counts each row twice, gpt-6-luna five times, your own model once).

deleting
boolean
required
stats
object
required
fanout
object

The fan-out settings in effect, every key present.