Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Knowledgebase UI Export API

    Posted 20 days ago

    Hello,

    I am looking for an API that mimics the UI Export feature from the Knowledgebase, does one exist to pull the full JSON export like you can do manually?

    Thanks!

    Nicole


    #Integrations
    #PlatformAPI

    ------------------------------
    Nicole VanWie
    UC Engineer
    ------------------------------


  • 2.  RE: Knowledgebase UI Export API

    Posted 20 days ago
    Edited by Breno Canyggia Ferreira Marreco 19 days ago

    Hi Nicole, you can use multiple calls and assemble the JSON externally, for example:

    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations
    GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}

    You would then need to combine the Knowledge Base metadata, categories, labels, documents, and variations into your own export JSON.



    ------------------------------
    Att,
    Breno Canyggia Ferreira Marreco
    ------------------------------



  • 3.  RE: Knowledgebase UI Export API

    Posted 20 days ago

    Hi,

    You can use this endpoint to create an export job https://developer.genesys.cloud/devapps/api-explorer-standalone#post-api-v2-knowledge-knowledgebases--knowledgeBaseId--export-jobs

    Then use this endpoint to retrieve the result. https://developer.genesys.cloud/devapps/api-explorer-standalone#get-api-v2-knowledge-knowledgebases--knowledgeBaseId--export-jobs--exportJobId-

    The result will contain a URL to download the JSON export.



    ------------------------------
    Savino Ricci
    Senior Technical Consultant
    ------------------------------



  • 4.  RE: Knowledgebase UI Export API

    Posted 16 days ago

    Thanks Savino, I will give that a try!



    ------------------------------
    Nicole VanWie
    UC Engineer
    ------------------------------