Create a report while applying the specified operation(s)

post/reports
Internal-Use Only

Create a report while applying the specified operation(s). The new report may be generated with a specific name and location by denoting the resultFolder and resultReportName in the body of the request. If neither of these are specified in the body, the a report named "Report" is generated in the location /folders/folders/@myFolder.

Request Samples

1

Response Samples

1{
2 "id": "operation123",
3 "version": 1,
4 "resultReportId": "3122a48c-e7d3-4922-9ed4-46e9d61a83e4",
5 "resultReportName": "ReportWithNewPage",
6 "resultReportUri": "/reports/reports/3122a48c-e7d3-4922-9ed4-46e9d61a83e4",
7 "resultFolderUri": "/folders/folders/@myFolder",
8 "operations": [
9 {
10 "name": "vi70",
11 "label": "My New Page",
12 "status": "Success"
13 }
14 ],
15 "status": "Success",
16 "links": [
17 {
18 "method": "GET",
19 "rel": "getReport",
20 "href": "/reportOperations/reports/3122a48c-e7d3-4922-9ed4-46e9d61a83e4",
21 "uri": "/reportOperations/reports/3122a48c-e7d3-4922-9ed4-46e9d61a83e4",
22 "type": "application/vnd.sas.report.operations.request+json"
23 }
24 ]
25}

Request Body

The request details identifying the operations to be performed on the new report.

A request object is the root object contained in the body of requests for put and post endpoints. It specifies the destination of the resulting report as well as the operations to be performed on the report.

NameTypeRequiredDescription
id
string
false

The id of the request, usually a UUID.

version
integer
false

This media type's schema version number.

resultFolder
string
false

The URI of the folder in which to save the resulting report. If not specified and a new report is being created, the default value of "/reports/reports/@myFolder" is used.

resultReportName
string
false

The name of the resulting report. If not specified and a new report is being created, the default value of "Report" is used along with a resultNameConflict policy of "rename".

resultNameConflict
string
false

The name conflict resolution strategy. If not specified, the default behavior of "abort" is used when updating a report and the default behavior of "rename" is used when creating a new report.

Allowed values:
abortrenamereplace
operations
array [anyOf]addDataOperationRequestchangeDataOperationRequestapplyDataViewOperationRequestaddPageOperationRequestaddObjectOperationRequestsetParameterValueOperationRequest
false

This object defines a single operation to be performed on a report.

Responses

StatusMeaningDescription
201CreatedThe new report was successfully created.HeadersSchema
400Bad RequestThis is a bad request. The request is not properly formed or the body is missing required fields.HeadersSchema
404Not FoundThe result report folder does not exist.HeadersSchema
409ConflictA report with the same name already exists in the destination folder.HeadersSchema