Jump to content
We've recently updated our Privacy Statement, available here ×

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


jeanpierrepolnareff91
Go to solution Solved by arnaudsimon091,

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

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 : 

copy_api_rest.png.ebb44c9ee5a437c3e37a6aad6da8b092.png

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...