Publish the Primary Version of an Article

Publishes the primary version of an article.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Important

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>.

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 online.
versionNumberVersion of the article.
publishScheduleDateDate 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.