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
string
Requiredstring
the body to convert from
string
string
WebResourceDependencies
ReferenceContent
ReferenceContent
returns the converted body
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
}
}'
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: