Convert content from XML to JSON

post/content
Internal-Use Only

Returns the converted report content.

Request Samples

1

Response Samples

1{
2 "@element": "SASReport",
3 "xmlns": "http://www.sas.com/sasreportmodel/bird-4.3.0",
4 "label": "Small Report",
5 "dateCreated": "2020-10-24T01:33:24Z",
6 "dateModified": "2020-11-04T03:20:00Z",
7 "view": {
8 "@element": "View",
9 "sections": [
10 {
11 "@element": "Section",
12 "name": "vi1",
13 "label": "Section1",
14 "body": {
15 "@element": "Body",
16 "mediaContainerList": [
17 {
18 "@element": "MediaContainer",
19 "target": "mt111",
20 "layout": {
21 "@element": "ResponsiveLayout"
22 }
23 }
24 ]
25 },
26 "mediaSchemes": [
27 {
28 "@element": "MediaScheme",
29 "name": "ms201"
30 }
31 ],
32 "mediaTargets": [
33 {
34 "@element": "MediaTarget",
35 "name": "mt111",
36 "scheme\"": "ms201"
37 }
38 ]
39 }
40 ]
41 }
42}

Request Body

The report content to be converted.

The representation of a report content in XML format. Check Get Versions and GET /versions/@defaultVersion for the set of valid media types and versions as defined by Business Intelligence Report Definition. If not provided, for request the version equivalent to the report content schema is used and for response latest version is used. The schema of this XML example is just for the example and therefore is only a very small subset of Business Intelligence Report Definition

NameTypeRequiredDescription
label
string
false
Example:
"Small Report"
dateCreated
string
false
Example:
"2020-10-24T01:33:24Z"
dateModified
string
false
Example:
"2020-11-04T03:20:00Z"
Results
object
false
DataDefinitions
object
false
VisualElements
object
false
PromptDefinitions
object
false
View
object
false
Interactions
object
false
MediaDefinitionResource
object
false
MediaSchemes
object
false
MediaTargets
object
false

Responses

StatusMeaningDescription
200OKReport content.Schema
400Bad RequestBad Request. The input report content was not valid.Schema