Unpublish the Primary Version of an Article

Unpublishes the online primary version of an article when there isn’t an existing draft article.

The publishing actions are defined by the field change you request on the resource. To unpublish the primary version, use "publishStatus":"draft".

URI 

1/services/data/v25.0/knowledgeManagement/articleVersions/masterVersions/<versionId>

Formats 

JSON, XML

HTTP Method 

PATCH

Authentication 

Authorization: OAuth {accesstoken}

Parameters 

ParameterDescription
publishStatusPublishing status of the article. Use draft.

Input 

1{
2    "publishStatus":"draft"
3    }

Output 

HTTP status code 204 is returned when an existing record is updated.