Set the context window for one model, for your organization.
Body: { "model_id": "...", "context_window": N }. Creates the override or
replaces the one already stored for that model id. context_window is in
tokens and must be between 0 and 1000000; 0 means “unknown”, so no
context-fill percentage is computed for that model. The new value applies
from the next ingested event.
The model id travels in the BODY, not the path — which is why ids containing
/ need no percent-encoding, and why this shares its path with the list and
delete operations.
Authorizations
A scoped AgentEye API key. Mint one in the dashboard under Settings → API keys, or with POST /v1/keys. Each endpoint names the permission it requires; a key without it gets 403 and a required_permission field naming what was missing.
Body
The context-window size in tokens. Constrained to [0, 1_000_000]
(0 = unknown → no fill); fits ClickHouse's UInt32 context_window column.
The model id to override, e.g. anthropic/claude-sonnet-4. 1–256
characters; a / in the id needs no encoding because it never touches
the path.
Response
The stored override.

