• Access Mode
  • Admin Group
  • Admin Space
  • Admin User
  • Admin Users
  • Attachments
  • Backup and Restore
  • Category
  • Child Content
  • Cluster information
  • Content Blueprint
  • Content Body
  • Content Descendant
  • Content Labels
  • Content Property
  • Content Resource
  • Content Restrictions
  • Content Version
  • Content Watchers
  • Global Permissions
  • GlobalColorScheme
  • Group
  • Instance Metrics
  • Label
  • Long Task
  • Server Information
  • Space
  • Space Label
  • Space Permissions
  • Space Property
  • Space Watchers
  • SpaceColorScheme
  • User
  • User Group
  • User Watch
  • Webhooks
  • Other operations
Server
Confluence Data Center / / REST API

Content Body

Postman Collection
OpenAPI
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

Forge and OAuth2 apps cannot access this REST resource.

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: