Skip to main content
PATCH
Update project model grant

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required
Pattern: ^org_[a-z2-7]{26}$
projectID
string
required
Pattern: ^proj_[a-z2-7]{26}$
modelGrantID
string
required
Pattern: ^pmog_[a-z2-7]{26}$

Body

application/json

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.

context_window_tokens
integer | null

Project token-window limit. Cannot exceed the configured model's current limit.

Required range: x >= 1
max_output_tokens
integer | null

Project output-token ceiling. Cannot exceed the configured model's ceiling.

Required range: x >= 1
default_max_output_tokens
integer | null

Project default per-request output-token cap.

Required range: x >= 1
default_cache_retention
enum<string> | null

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.

Available options:
none,
short,
long
supports_tools
boolean | null

Project-level tool-use gate. Can disable tools, but cannot enable tools when the configured model does not support them.

supports_reasoning
boolean | null

Project-level reasoning gate. Can disable reasoning, but cannot enable reasoning when the configured model does not support it.

default_reasoning_effort
string | null

Project default reasoning effort.

supported_reasoning_efforts
string[]

Project subset of configured-model reasoning efforts. If this excludes the inherited default_reasoning_effort, set default_reasoning_effort on the grant too.

input_modalities
string[]

Project subset of configured-model input types.

output_modalities
string[]

Project subset of configured-model output types.

Response

Route response.

grant
object
required