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

Organization ID (org_...).

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

Project ID (proj_...).

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

Project model grant ID (pmog_...).

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 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.

Required range: 2 <= x <= 2147483647
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

Default output allowance per request for this project; agents can raise it up to max_output_tokens. Null inherits the configured model's.

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

Overrides the model's prompt caching for this project. Null inherits it.

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

Reasoning effort this project uses by default. Null inherits the configured model's.

supported_reasoning_efforts
string[]

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_modalities
string[]

Input types this project may send, such as text, image, or file; limited to the configured model's.

output_modalities
string[]

Output types this project may receive, limited to the configured model's.

Response

Route response.

grant
object
required