v1ConvaiKnowledgeBaseTextPost method

Future<Response<AddKnowledgeBaseResponseModel>> v1ConvaiKnowledgeBaseTextPost({
  1. String? xiApiKey,
  2. required BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost? body,
})

Create Text Document @param xi-api-key Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.

Implementation

Future<chopper.Response<AddKnowledgeBaseResponseModel>>
v1ConvaiKnowledgeBaseTextPost({
  String? xiApiKey,
  required BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost? body,
}) {
  generatedMapping.putIfAbsent(
    AddKnowledgeBaseResponseModel,
    () => AddKnowledgeBaseResponseModel.fromJsonFactory,
  );

  return _v1ConvaiKnowledgeBaseTextPost(
    xiApiKey: xiApiKey?.toString(),
    body: body,
  );
}