copy_report
Duplicates a SAS Visual Analytics report to create a new version. Use it to tailor reports for new audiences or to start a copy-and-replace workflow.
Instructions
Copy a Visual Analytics report to a new report, returning the copy's id.
Useful for tailoring a report to a new audience or for the copy-and-replace
pattern — copy, then apply_report_operations with a changeData op to
point the copy at a different table. Returns
{"status": "copied", "id": ..., "name": ..., "source_report_id": ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the copy (``resultReportName``); omit to let Viya name it. | |
| folder | No | Optional target folder URI (``resultFolder``); omit for the caller's My Folder. | |
| report_id | Yes | The source report id to copy. | |
| on_conflict | No | Name-conflict policy — ``rename`` (default), ``abort``, or ``replace``. | rename |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||