Publish content version
1 min
POST
/_cms/v1/content/{key}/versions/{version}:publish
keystringThe key of the content item to publish.
versionstringThe version of the content item to publish.
acceptstringGenerated from available response content types
Preferarray<p>Indicates client preference for the response content as per IETF RFC7240. Currently only supports 'return=representation' which can be used to indicate a preference to receive a representation of the resource that has been altered in the response.</p>
If-Matchstring<p>If provided, the POST request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.</p>
If-Unmodified-Sincestring<http-date><p>If provided, the POST request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.</p>
bodyobjectOptional instructions for how to publish content.
200OK
204No Content
400Bad Request
401Unauthorized
403Forbidden
404Not Found
412Precondition Failed
500Internal Server Error
curl --request POST \
--url /_cms/v1/content/{key}/versions/{version}:publish \
--header 'accept: application/json'