Save and return report content

put/reports/{reportId}/content

An ETag is not required for the initial save, but is required for all subsequent saves. See Conditional Operations. A different response code is returned depending on whether the request is for the initial save or a subsequent save.

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}

Path Parameters

NameTypeRequiredDescription
reportId
string<object-id>
true

Report id for this operation.

Query Parameters

NameTypeRequiredDescription
copyDependentFiles
boolean
false

The flag to create copy of all dependent file resources.

Header Parameters

NameTypeRequiredDescription
If-Match
string
false

The ETag that was returned from a GET, POST, PUT, or HEAD of this resource. If the ETag does not match, the update will fail.

If-Unmodified-Since
string
false

The value of the modifiedTimeStamp of the resource. If the resource has been updated since this time, the update will fail.

Request Body

The report content to be saved.

The representation of a report content in JSON 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.

Responses

StatusMeaningDescription
200OK

The report content was updated.

HeadersSchema
201Created

The report content was created.

HeadersSchema
400Bad Request

Report does not exist.

Schema
404Not Found

Report or report content does not exist.

Schema
412Precondition Failed

The If-Match or If-Unmodified-Since header did not match the current version of the object.

Schema
428Precondition Required

The If-Match or If-Unmodified-Since was not provided when updating the report.

Schema