Disable a model
Transitions a model to STATE_DISABLED. Fails while agent variations are still provisioned on the model; use :swapModelOnVariations to move them first.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workspace ID.
"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
Model ID
"model_01HXKD2E5NQM3T9AYWCFKJ4GED"
Body
Disable model request
Response
OK
Resource metadata
Model specification
Whether the model is usable in this workspace. Output only. Use the :enable and :disable actions to transition.
STATE_UNSPECIFIED, STATE_ENABLED, STATE_DISABLED Where this definition came from. Output only; set at creation. Synced models reject edits to metadata.name and spec, manually entered models accept them.
PROVENANCE_UNSPECIFIED, PROVENANCE_SYNCED_FROM_PROVIDER, PROVENANCE_MANUALLY_ENTERED The rates before any customer override: the catalog rate for a synced model, the entered rate for a manually entered one. Output only. When a side matches the spec price, an override may still be present; inspect pricing_override field presence to determine whether an override is set.
Server-populated info (e.g. the AI provider this model routes through). Populated on reads when requested; see ListModelsRequest.include_info.
Customer price overrides. Output only here; set through UpdateModel with pricing_override.* mask paths. When an override is present, spec's price fields already reflect it (they are the effective prices).