Copy a report / resources of a folder to another folder with REST API

Hello everyone !

Sorry for my trivial question, but does anybody know the syntax to copy a report / a folder to another folder in JasperReports ?

Thanks for helping.

jeanpierrepolnareff91's picture
Joined: May 22 2019 - 1:10am
Last seen: 1 year 1 month ago

1 Answer:

Hi jean-pierre ! 

If you want to copy a report to another folder,  you'll need to use a syntax like this : 

Method : POST

Headers : Content-Location resource_to_be_copied_path

Request : http://your_server:8080/jasperserver/rest_v2/resources/path_to_folder_where_you_want_to_copy_resource?overwrite=true&createFolders=true

Sample image : 

If you need more informations, you can check the REST API documentation in the Docs section of this website, it's pretty usefull.

Best Regards,

Arnaud

arnaudsimon091's picture
Joined: Nov 26 2018 - 12:25pm
Last seen: 3 months 3 weeks ago
Feedback
randomness