v1
latestOpenAPI 3.0.12026-07-13130168404.3 KBSet the content state of a content and publishes a new version of the content.
Sets the content state of the content specified and creates a new version (publishes the content without changing the body) of the content with the new state.
You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id will be used. If the name and color passed in already exist under the current user's existing custom states, the existing state will be reused. If custom states are disabled in the space of the content (which can be determined by getting the content state space settings of the content's space) then this set will fail.
You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is required in the body of this request.
Permissions required: Permission to edit the content.
Path parameters
The Id of the content whose content state is to be set.
Query parameters
Status of content onto which state will be placed. If draft, then draft state will change. If current, state will be placed onto a new version of the content with same body as previous version.
Request body
Response
Returned if content state is set successfully.