We are able to back up space through rest API, but we are not able to restore those space through the REST API.
And Used this url(Hostname/rest/api/backup-restore-restore/space/upload) in postman but getting 401 unauthorised error
And we uploaded a XML zipfile in fromdata
Hi Mounika,
I don't think that the appropriate API.
Check this page:
Kind regards,
Hugo.
Senior Consultant | ServiceRocket
Thank you for responding nugo
We tried all the url in above url sheet for import but still we getting 401 unauthorised error
Thanks & regards
Mounika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mounika,
The 401 means that there's an error on the login. Are you trying to run the script using the basic auth or a token?
Also, which user are you using to import the space? Please note that there might be 2 types of errors:
The 401 is not a bad sign anyway as it confirms you're reaching the system.
I would suggest to run a test using your basic auth credentials.
Let me know how it goes.
Kind regards,
Hugo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hugo,
I created spaces in the source, exported them, downloaded the ZIP file, and imported it into the target. However, I am getting a 400 Bad Request error?
Thanks
Mounika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's no direct way of doing this through API but I found a document that might help you out:
https://confluence.atlassian.com/confkb/confluence-space-import-via-scripting-tools-1041075950.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.