Update project model grant
Changed onUpdates the project's overrides for the configured model. Omitted fields keep their current values; null, or [] for supported_reasoning_efforts, input_modalities, and output_modalities, clears an override so the project inherits from the configured model. Agents already using the model apply the updated overrides on their next model call. Updates are validated against the configured model's current revision but not against agent configs, so narrowing below a config's model settings, such as its context_window_tokens or reasoning effort, makes that agent's next model call fail.
Request
- Base URLhttps://api.omnara.com/v1
- Auth
- HTTP bearer
- or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf
Path parameters
Organization ID (org_...).
Project ID (proj_...).
Project model grant ID (pmog_...).
Request body
Update a project model grant's overrides. Omitted fields keep their current values. Null clears an override so the project inherits from the configured model; for arrays, an empty array clears the override.
Project context budget for input and output tokens. Cannot exceed the configured model's budget. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.
Project output-token ceiling. Cannot exceed the configured model's ceiling.
Default output allowance per request for this project; agents can raise it up to max_output_tokens. Null inherits the configured model's.
Prompt-cache preference for model requests; short when omitted. short applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. long prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like short elsewhere. none sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.
Project-level tool-use gate. Can disable tools, but cannot enable tools when the configured model does not support them.
Project-level reasoning gate. Can disable reasoning, but cannot enable reasoning when the configured model does not support it.
Reasoning effort this project uses by default. Null inherits the configured model's.
Reasoning efforts this project may use, limited to the configured model's. If this excludes the inherited default_reasoning_effort, set default_reasoning_effort too.
Input types this project may send, such as text, image, or file; limited to the configured model's.
Output types this project may receive, limited to the configured model's.
Response
Route response.
Changes
- breaking
the
context_window_tokensrequest property's min was increased to2.00 - warning
the
context_window_tokensrequest property's max was set to2147483647.00
- breaking
- info
added the optional property
current_digestto the response with the status
158 more changes in this revision
- info