Convert body representation
Converts between content body representations. Not all representations can be converted to/from other formats. Supported conversions:
storage -> view,export_view,styled_view,editoreditor -> storageview -> Noneexport_view -> Nonestyled_view -> None
Example request URI(s):
http://example.com/confluence/rest/api/contentbody/convert/view
POST
/rest/api/contentbody/convert/{to}Path parameters
tostringrequiredthe representation to convert to.
Query parameters
expandstringA comma separated list of properties to expand on the content. Default value: <code>body.storage,history,space,version,ancestors</code>
Request body
application/jsonthe body to convert from
representationstringvaluestringwebresourceWebResourceDependenciesShow propertiesHide properties
keysstring[]contextsstring[]urisobjecttagsobjectsuperbatchSuperBatchWebResourcesShow propertiesHide properties
urisobjecttagsobjectmetatagsstringcontentReferenceContentShow propertiesHide properties
expandedbooleanidPropertiesobjectcontentRefReferenceContentShow propertiesHide properties
expandedbooleanidPropertiesobjectResponses
200
returns the converted body
representationstringvaluestringwebresourceWebResourceDependenciesShow propertiesHide properties
keysstring[]contextsstring[]urisobjecttagsobjectsuperbatchSuperBatchWebResourcesShow propertiesHide properties
urisobjecttagsobjectmetatagsstringcontentReferenceContentShow propertiesHide properties
expandedbooleanidPropertiesobjectcontentRefReferenceContentShow propertiesHide properties
expandedbooleanidPropertiesobject