PUT
/v1/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/tenants/{tenantId}/knowledge-bases/{knowledgeBaseId}/connectionReplace a Knowledge Base's host-only Connection
Conditionally attach an active host-only Connection from the same Tenant, or detach the current Connection with null.
Authentication
Send an API key as a Bearer token in the Authorization header.
Parameters
Request body
Required.
application/jsonobject- unknown properties allowed
false
dataIntegrationConnectionIdrequired- The same-Tenant host-only Connection to attach, or null to detach the current Connection.Any of
stringA Cantora Integration Connection identifier, prefixed with `data_integration_connection_`.- maximum length
64 - pattern
^data_integration_connection_[\s\S]+$
null - maximum length
Responses
200KnowledgeBaseSummaryapplication/json400The request path, headers, query, or JSON body did not satisfy the published schema401Unauthorizedapplication/json403Forbiddenapplication/json404NotFoundapplication/json409Conflictapplication/json412DataIntegrationPreconditionFailedapplication/jsonReusable schemas
KnowledgeBaseSummaryEncoded
object- unknown properties allowed
false
knowledgeBaseIdrequiredstringThe Knowledge Base identifier.- maximum length
64 - pattern
^knowledge_base_[\s\S]+$
- maximum length
organizationIdrequiredstringThe Organization identifier.- maximum length
64 - pattern
^org_[\s\S]+$
- maximum length
projectIdrequiredstringThe Project identifier.- maximum length
64 - pattern
^proj_[\s\S]+$
- maximum length
environmentIdrequiredstringThe Environment identifier.- maximum length
64 - pattern
^env_[\s\S]+$
- maximum length
tenantIdrequiredstringThe Tenant identifier.- maximum length
64 - pattern
^tenant_[\s\S]+$
- maximum length
keyrequiredstringThe stable, human-authored Agent Definition key.displayNamerequiredstringThe human-readable resource name.sourceTyperequiredstringThe provider-neutral source adapter type.dataIntegrationConnectionIdrequired- The scoped data Integration Connection identifier.Any of
stringA Cantora Integration Connection identifier, prefixed with `data_integration_connection_`.- maximum length
64 - pattern
^data_integration_connection_[\s\S]+$
null - maximum length
configurationGenerationrequiredintegerThe monotonically increasing Knowledge Base configuration generation.- greater than
0
- greater than
configurationEtagrequiredstringThe strong ETag for this Knowledge Base's mutable source configuration.- maximum length
12 - pattern
^"(?:[1-9][0-9]{0,9})"$
- maximum length
activeSnapshotrequired- The active immutable Knowledge Snapshot, or null before the first successful synchronization.Any of
null createdAtrequiredstringWhen the resource was created, in UTC.- format
date-time
- format
UnauthorizedEncoded
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"Unauthorized"
- allowed values
reasonrequiredstringA safe explanation of why the credential was rejected.
ForbiddenEncoded
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"Forbidden"
- allowed values
permissionrequiredstringThe permission required by the refused operation.
NotFoundEncoded
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"NotFound"
- allowed values
resourcerequiredstringThe resource type relevant to the error.idrequiredstringThe identifier supplied for the resource that was not found.
ConflictEncoded
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"Conflict"
- allowed values
resourcerequiredstringThe resource type relevant to the error.reasonrequiredstringA safe explanation of the state conflict.
DataIntegrationPreconditionFailedEncoded
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"DataIntegrationPreconditionFailed"
- allowed values
resourcerequiredstringThe resource type relevant to the error.- allowed values
"integration", "dataIntegrationApplication", "integrationEnvironmentBinding", "dataIntegrationConnection", "knowledgeBase"
- allowed values
currentEtagrequiredstringThe current strong ETag required for the next conditional activation.- maximum length
12 - pattern
^"(?:[1-9][0-9]{0,9})"$
- maximum length
ActiveKnowledgeSnapshotEncoded
object- unknown properties allowed
false
knowledgeSnapshotIdrequiredstringThe immutable Knowledge Snapshot identifier.- maximum length
64 - pattern
^knowledge_snapshot_[\s\S]+$
- maximum length
generationrequiredintegerThe monotonically increasing Agent Release generation.- greater than
0
- greater than
embeddingProviderrequiredstringThe embedding provider used to build this Snapshot.embeddingModelrequiredstringThe embedding model used to build this Snapshot.embeddingDimensionsrequiredintegerThe number of dimensions in every embedding vector in this Snapshot.- greater than
0
- greater than
createdAtrequiredstringWhen the resource was created, in UTC.- format
date-time
- format