Newer Version Available
Publish the Primary Version of an Article
Publishes the primary version of an article.
The publishing actions are defined by the field change you request on the resource. To publish a minor version, use "publishStatus":"Online". To publish a major version, use "publishStatus":"Online" and "versionNumber":"NextVersion". To schedule a publication date, use "publishScheduleDate" : <date>.
Syntax
- URI
-
1/services/data/v25.0/knowledgeManagement/articleVersions/masterVersions/<versionId> - Formats
- JSON, XML
- HTTP Method
- PATCH
- Authentication
- Authorization: OAuth accesstoken
- Parameters
-
Parameter Description publishStatus Publishing status of the article. Use online. versionNumber Version of the article. publishScheduleDate Date to publish the article in ISO 8601 format YYYY-MM-DDTHH:mm:ss+/-HHmm. For example, for February 8, 2023, 1:40 pm UTC+01:00 use 2023-02-08T13:40:31+0100.. - Input
- Publish a minor
version:
1{ 2 "publishStatus":"Online" 3 } - Publish a major
version:
1{ 2 "publishStatus":"Online", 3 "versionNumber":"NextVersion" 4 } - Schedule for publication:
1{ 2 "publishScheduleDate" : "2012-05-19T07:00:00+0000" 3 } - Output
- HTTP status code 204 is returned when an existing record is updated.