associateWorkspaceModels
abstract suspend fun associateWorkspaceModels(input: AssociateWorkspaceModelsRequest): AssociateWorkspaceModelsResponse
Associates models with the specified WorkSpace. The models must be on your account's model list. The operation ignores models that are already associated with the WorkSpace. A WorkSpace can have up to 25 models. If the request would exceed this limit, the operation returns ServiceQuotaExceededException.
Samples
// The following example adds a model to an agentic WorkSpace. The model must already be on your
// account s model list. To add it, call AssociateAccountModels.
val resp = workSpacesClient.associateWorkspaceModels {
workspaceId = "ws-dk1example1"
modelIds = listOf<String>(
"anthropic.claude-opus-5-5"
)
}Content copied to clipboard