disassociateWorkspaceModels

Disassociates models from the specified WorkSpace. The operation ignores models that aren't associated with the WorkSpace. A WorkSpace must keep at least one model. If the request would remove the last model, the operation returns ValidationException. If the WorkSpace is in a state that doesn't allow the change, the operation returns ConflictException.

Samples

// The following example removes a model from an agentic WorkSpace.
val resp = workSpacesClient.disassociateWorkspaceModels {
    workspaceId = "ws-dk1example1"
    modelIds = listOf<String>(
        "anthropic.claude-opus-5-5"
    )
}