deleteImportJob method

Future<void> deleteImportJob({
  1. required String importJobId,
  2. required String knowledgeBaseId,
})

Deletes the quick response import job.

May throw AccessDeniedException. May throw ConflictException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter importJobId : The identifier of the import job to be deleted.

Parameter knowledgeBaseId : The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it.

Implementation

Future<void> deleteImportJob({
  required String importJobId,
  required String knowledgeBaseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/knowledgeBases/${Uri.encodeComponent(knowledgeBaseId)}/importJobs/${Uri.encodeComponent(importJobId)}',
    exceptionFnMap: _exceptionFns,
  );
}