postKnowledgeConnectorsByProviderSyncWithHttpInfo method

Future<Response> postKnowledgeConnectorsByProviderSyncWithHttpInfo(
  1. String provider
)

Pulls the provider's documents for the caller's org and files them as knowledge sources, which the store's own hook then indexes — so a synced document is retrievable exactly like a hand-written page.

Pulls the provider's documents for the caller's org and files them as knowledge sources, which the store's own hook then indexes — so a synced document is retrievable exactly like a hand-written page. The org is the validated tenant and the credential is read from KMS, so an org can only ever sync its own connection. A provider failure is reported honestly (502) and recorded on the connector rather than silently swallowed.

Note: This method returns the HTTP Response.

Parameters:

  • String provider (required): Provider is the connector to act on: github, slack, google or notion.

Implementation

Future<Response> postKnowledgeConnectorsByProviderSyncWithHttpInfo(String provider,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/knowledge/connectors/{provider}/sync'
    .replaceAll('{provider}', provider);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}