associateWorkspaceAgenticContexts
abstract suspend fun associateWorkspaceAgenticContexts(input: AssociateWorkspaceAgenticContextsRequest): AssociateWorkspaceAgenticContextsResponse
Associates agentic contexts with the specified WorkSpace. The operation ignores contexts that are already associated with the WorkSpace. A WorkSpace can have up to 50 contexts. If the request would exceed this limit, the operation returns ServiceQuotaExceededException.
Samples
// The following example adds a context to an agentic WorkSpace.
val resp = workSpacesClient.associateWorkspaceAgenticContexts {
workspaceId = "ws-dk1example1"
agenticContextIds = listOf<String>(
"wsactx-e5f6g7h8"
)
}Content copied to clipboard