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

Default prompt-cache hint for model requests. none means Omnara does not send a cache hint; providers may still apply their own automatic caching. short and long are translated to the closest supported control for the selected API.

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