Server
Confluence Data Center / / REST API
POST

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,editor
  • editor -> storage
  • view -> None
  • export_view -> None
  • styled_view -> None

Example request URI(s):

  • http://example.com/confluence/rest/api/contentbody/convert/view

Request

Path parameters

to

string

Required

Query parameters

expand

string

Request bodyapplication/json

the body to convert from

representation

string

value

string

webresource

WebResourceDependencies

content

ReferenceContent

contentRef

ReferenceContent

Responses

returns the converted body

application/json

ContentBody
POST/rest/api/contentbody/convert/{to}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 curl --request POST \ --url 'http://{baseurl}/confluence/rest/api/contentbody/convert/{to}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "representation": "<string>", "value": "This is a body", "webresource": { "keys": [ "key1", "key2", "key3" ], "contexts": [ "context1", "context2", "context3" ], "uris": {}, "tags": {}, "superbatch": { "uris": {}, "tags": {}, "metatags": "<string>" } }, "content": { "idProperties": {}, "expanded": true }, "contentRef": { "idProperties": {}, "expanded": true } }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 { "representation": "<string>", "value": "This is a body", "webresource": { "keys": [ "key1", "key2", "key3" ], "contexts": [ "context1", "context2", "context3" ], "uris": {}, "tags": {}, "superbatch": { "uris": {}, "tags": {}, "metatags": "<string>" } }, "content": { "idProperties": {}, "expanded": true }, "contentRef": { "idProperties": {}, "expanded": true } }

Rate this page: