function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
trailhead solutions 10trailhead solutions 10 

Unpublishing the Knowledge Article Via API

Hello

I found a link for updation of Publish Article to Draft via API from Salesforce.
https://developer.salesforce.com/docs/atlas.en-us.knowledge_dev.meta/knowledge_dev/knowledge_REST_unpublish_master_version.htm


Can anyone Please let me know the procedure (The Process involved in it) above mentioned to do update from publish status to Draft via API? as I am new to API.

Thanks
TH Aspirant
SwethaSwetha (Salesforce Developers) 
HI,
Are you trying to accomplish this via code? If yes, check the apex code in post: https://salesforceprofs.com/updating-knowledge-articles-programmatically-by-apex/

If you want to use thirdparty like workbench enter the URI /services/data/v25.0/knowledgeManagement/articleVersions/masterVersions/<versionId> in the REST explorer with PATCH method.

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you