Create a copy of a report
Creates a copy of a report. The report to be copied is denoted in the uri of the request. The name and location of the copied report can be specified in the body of the request with the resultFolder and resultReportName properties. These are optional properties. If not specified, the copy is placed in the same folder as the original report, using the same report name along with an appended version.
1{2 "resultReportId": "ca49fb4e-0324-4c8a-a596-cfc250f84528",3 "resultReportName": "MyCopiedReport",4 "resultReportUri": "/reports/reports/ca49fb4e-0324-4c8a-a596-cfc250f84528",5 "resultFolderUri": "/folders/folders/6b38e389-f233-47cf-b7a2-417322c68591",6 "links": [7 {8 "method": "GET",9 "rel": "getReport",10 "href": "/reportOperations/reports/ca49fb4e-0324-4c8a-a596-cfc250f84528",11 "uri": "/reportOperations/reports/ca49fb4e-0324-4c8a-a596-cfc250f84528",12 "type": "application/vnd.sas.report.operations.request+json"13 }14 ]15}
The request details identifying the name and destination of the report copy.
The request object in the body of copy request. It optionally allows the consumer to specify the name, location, and conflict resolution policy for the new report resulting from the copy request.
| Name | Type | Required | Description |
|---|---|---|---|
resultFolder | string | false | The URI of the folder in which to save the copied report. If not specified the default value is the folder containing the source report. |
resultReportName | string | false | The name of the resulting report. If not specified the default value is the name of the source report, with an appended version if needed. |
resultNameConflict | string | false | The name conflict resolution strategy. If not specified, the default behavior of "rename" is used. Allowed values: abortrenamereplace |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 201 | Created | The new report copy was successfully created. | Headers | Schema |
| 400 | Bad Request | This is a bad request. The request is not properly formed or the body is missing required fields or the update has failed. | Headers | Schema |
| 404 | Not Found | The source report does not exist or the result report folder does not exist. | Headers | Schema |
| 409 | Conflict | A report with the same name already exists in the destination folder. | Headers | Schema |