Hi All,
I been experiencing a strange issue when trying to import a JSON file Via API for the Deployment process of a project. Just to give some context as I am fairly new to Octopus, we started to create a demo and created everything on runbooks and now we want to test with the deployment process. I could not find an easy way to clone the runbooks to a NEW project so I exported each runbook as JSON and tried to import via API. Only the First one worked (After removing IDs). So I tried to combine all the JSON into one Create a new project and Import, it did not work either. So I said ok Let me clone everything to the current Deployment Process of the same project, Export it’s JSON and import it in another project but still same result.
First of all it is VERY strange that on each project I can only PUT once via API, I do not know what is the reason but if I Import a JSON File via API, Delete all steps and try again to re-import same File, it returns Error 400 Bad Request as well so it is not something with the JSON itself it seems. Second thing that I found strange is the fact that I am downloading a process deployment export now directly from the server, and All I am doing is removing IDs but still same error.
Any ideas or solutions for importing such JSON ?
Thanks !