Update project model grant
grant_models_editUpdates 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgID | Yes | Organization ID (org_...). | |
| projectID | Yes | Project ID (proj_...). | |
| modelGrantID | Yes | Project model grant ID (pmog_...). | |
| supports_tools | No | Project-level tool-use gate. Can disable tools, but cannot enable tools when the configured model does not support them. | |
| input_modalities | No | Project subset of configured-model input types. | |
| max_output_tokens | No | Project output-token ceiling. Cannot exceed the configured model's ceiling. | |
| output_modalities | No | Project subset of configured-model output types. | |
| supports_reasoning | No | Project-level reasoning gate. Can disable reasoning, but cannot enable reasoning when the configured model does not support it. | |
| context_window_tokens | No | 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. | |
| default_cache_retention | No | ||
| default_reasoning_effort | No | Project default reasoning effort. | |
| default_max_output_tokens | No | Project default per-request output-token cap. | |
| supported_reasoning_efforts | No | Project subset of configured-model reasoning efforts. If this excludes the inherited default_reasoning_effort, set default_reasoning_effort on the grant too. |