API to export Knowledge Base articles from Confluence

kompal.sithta March 22, 2023

There is a requirement to export the KB articles using REST API. Is there any API available since I could not fine any.

1 answer

0 votes
Jerryton Surya
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2023

Hi @kompal.sithta 

I hope this API will help you to export a knowledge-base article

  1. Use the GET /wiki/rest/api/content/{id}?expand=body.storage endpoint to retrieve the content of each Knowledge Base article by ID.
  2. Extract the content from the JSON response and save it to a file in the desired format (e.g., HTML, PDF, etc.).
kompal.sithta March 23, 2023

@Jerryton Surya how to retrieve the article id?

Jerryton Surya
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2023
  1. Click on the "..." menu in the top right corner of the page and select "Page Information".
  2. In the Page Information dialog, locate the "Page ID" field. This is the base article ID for your Knowledge Base.
kompal.sithta March 23, 2023

@Jerryton Surya  is there any api for the getting the content of Knowledge base from jira service management ?

Jerryton Surya
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2023

You can use the following API endpoint to retrieve the articles from a knowledge base:

GET /rest/servicedeskapi/knowledgebase/{knowledgeBaseId}/articles

Replace {knowledgeBaseId} with the ID of the knowledge base you want to retrieve the articles from.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events