Hi All,
Is it possible to update the article status from draft to published version using API?
Thanks & Regards,
Kaviya
Hi All,
Is it possible to update the article status from draft to published version using API?
Thanks & Regards,
Kaviya
Can you provide some context? I don't know what you're referring to.
Hi Tim,
We are trying to automate the creation of Knowledge base article in Genesys .
I am using this 2 API's /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents , /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations to create a knowledge base Article and to update a content in article. I can able to do this automatically by using API.
Attached the screenshot of article which i created by using above two API's.
But the article status is in draft, Is it possible to update the article status from draft to published version by using API? (Highlighted in Yellow colour)
I'm not personally aware of how to accomplish that. I didn't find any API endpoints that obviously would publish something. I've asked the knowledge team to jump in to help explain how to use the APIs for that purpose.
In the meantime, if you can do what you're trying to accomplish in the UI, use your browser's network console to observe what API requests are being made by the UI. This will show you the endpoints and specific payloads being used so you can replicate the behavior in your own app.
Yes please, that will be very helpful for us if you find any API/request body to update the draft to published version
Hi, you can use the
POST /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions
endpoint with no body parameters (empty json object in the body: {}
) to publish the current draft as a new version. That sets the document state to Published.
Hi Tamas,
Thanks for your support, yeah now its working.
Thanks & Regards,
Kaviya
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.