Copy a Report and Assign Labels
A Reporting API that copies an existing report specified by a ReportId and assigns a new and unique ReportId to the copy
Contact Zuora Global Support to enable this feature in your tenant. This feature is currently in development and is subject to change without advance notice.
The Copy a Report and Assign Labels Reporting API copies an existing report specified by a ReportId and assigns a new and unique ReportId to the copy. Optionally the method allows for the copy of the report to be renamed and for a list of labels to be associated with the new report copy. The call returns the report metadata, report details, report definition and a new and unique ReportId.
Copy a Report requires the ReportId value as a request query value. You can obtain the ReportId from the id value in the JSON response to a call of Search by Report Names or Get Reports by Label you can get it definitively from the response to the Create a Report call.
If you want to modify a copy of a report definition you may be more interested in Create a Report and Assign a Label.
Request
This POST request must be submitted with: Content-Type: application/json
Request path parameters
Request body
No request body is accepted for this method.
Response
A successful invocation of Copy a Report and Assign Labels returns a JSON response with a new and unique ReportRunId with the report metadata, details and definition. Refer to the JSON response in the example below to see how the response is structured.
Example
HTTPS Request
This POST copies the report, 000000004ffbd1e5014ffbee997c0000, into two folders and renames the report to “Subs expiring <3months”.
POST https://zconnectsandbox.zuora.com/api/rest/v1/reports/copy?from=000000004ffbd1e5014ffbee997c0000&labelIds=00000000500258ba0150056829230000,00000000500f749901501a70c906001a&name=Subs expiring <3months
JSON Response: