Class AsyncAiContentClient


  • public class AsyncAiContentClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncAiContentClient

        public AsyncAiContentClient​(ClientOptions clientOptions)
    • Method Detail

      • listContentImportSources

        public java.util.concurrent.CompletableFuture<ContentImportSourcesList> listContentImportSources()
        You can retrieve a list of all content import sources for a workspace.
      • listContentImportSources

        public java.util.concurrent.CompletableFuture<ContentImportSourcesList> listContentImportSources​(RequestOptions requestOptions)
        You can retrieve a list of all content import sources for a workspace.
      • createContentImportSource

        public java.util.concurrent.CompletableFuture<ContentImportSource> createContentImportSource​(CreateContentImportSourceRequest request)
        You can create a new content import source by sending a POST request to this endpoint.
      • deleteContentImportSource

        public java.util.concurrent.CompletableFuture<java.lang.Void> deleteContentImportSource​(DeleteContentImportSourceRequest request)
        You can delete a content import source by making a DELETE request this endpoint. This will also delete all external pages that were imported from this source.
      • deleteContentImportSource

        public java.util.concurrent.CompletableFuture<java.lang.Void> deleteContentImportSource​(DeleteContentImportSourceRequest request,
                                                                                                RequestOptions requestOptions)
        You can delete a content import source by making a DELETE request this endpoint. This will also delete all external pages that were imported from this source.
      • listExternalPages

        public java.util.concurrent.CompletableFuture<ExternalPagesList> listExternalPages()
        You can retrieve a list of all external pages for a workspace.
      • listExternalPages

        public java.util.concurrent.CompletableFuture<ExternalPagesList> listExternalPages​(RequestOptions requestOptions)
        You can retrieve a list of all external pages for a workspace.
      • createExternalPage

        public java.util.concurrent.CompletableFuture<ExternalPage> createExternalPage​(CreateExternalPageRequest request)
        You can create a new external page by sending a POST request to this endpoint. If an external page already exists with the specified source_id and external_id, it will be updated instead.
      • createExternalPage

        public java.util.concurrent.CompletableFuture<ExternalPage> createExternalPage​(CreateExternalPageRequest request,
                                                                                       RequestOptions requestOptions)
        You can create a new external page by sending a POST request to this endpoint. If an external page already exists with the specified source_id and external_id, it will be updated instead.
      • updateExternalPage

        public java.util.concurrent.CompletableFuture<ExternalPage> updateExternalPage​(UpdateExternalPageRequest request)
        You can update an existing external page (if it was created via the API).
      • deleteExternalPage

        public java.util.concurrent.CompletableFuture<ExternalPage> deleteExternalPage​(DeleteExternalPageRequest request)
        Sending a DELETE request for an external page will remove it from the content library UI and from being used for AI answers.
      • deleteExternalPage

        public java.util.concurrent.CompletableFuture<ExternalPage> deleteExternalPage​(DeleteExternalPageRequest request,
                                                                                       RequestOptions requestOptions)
        Sending a DELETE request for an external page will remove it from the content library UI and from being used for AI answers.