Skip to main content
Contributor ⭐️
Mar 3, 2022 10:25 AM UTC
Solved

How to import articles in bulk?

We have over 500 knowledge articles in another system. Many of them have inline images. We want to import them into insided community. Is there a way to import these articles in bulk while retaining the images?

tom.shaddock
Gainsight Employee ⭐️⭐️
Mar 4, 2022 8:58 AM UTC

Hey @varunna so it looks like you’ll need this API endpoint: https://api2-us-west-2.insided.com/docs/community/#operation/createArticle as it allows for the creation of articles for certain categories, there is no bulk create option but you should be able to loop over this endpoint and create content for certain categories that way.

In regards to the images - if you submit the payload ‘content’ as HTML, the images (if externally hosted somewhere) should all be preserved ok and will display in the article content as normal.

I’d recommend you testing this out first though on your staging environment to ensure that there are no HTML tags / classes that may clash with the platform default styles (by inheriting unwanted styling rules).

 

1 reply

tom.shaddock
Gainsight Employee ⭐️⭐️
Mar 4, 2022 8:58 AM UTC

Hey @varunna so it looks like you’ll need this API endpoint: https://api2-us-west-2.insided.com/docs/community/#operation/createArticle as it allows for the creation of articles for certain categories, there is no bulk create option but you should be able to loop over this endpoint and create content for certain categories that way.

In regards to the images - if you submit the payload ‘content’ as HTML, the images (if externally hosted somewhere) should all be preserved ok and will display in the article content as normal.

I’d recommend you testing this out first though on your staging environment to ensure that there are no HTML tags / classes that may clash with the platform default styles (by inheriting unwanted styling rules).

 

Translate