ModelService
Models

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.

post/v1/workspaces/{workspaceId}/models/{id}:disable

Path parameters

workspaceIdstring required

Workspace ID.

idstring required

Model ID

Request body

workspaceIdstring

Workspace ID.

idstring

Model ID

Response

OK

state'STATE_UNSPECIFIED' | 'STATE_ENABLED' | 'STATE_DISABLED' enum required

Whether the model is usable in this workspace. Output only. Use the :enable and :disable actions to transition.

Changes