Hi,
I am able to deploy proxy thru this url
where as when I tired the same thru curl cmd on my linux machine is not working. here is the curl cmd I used
curl -X POST -u davana.gongadi@abc.com:xxxx https://api.enterprise.apigee.com/v1/organizations/gd_satish/environments/test/pis/weatherapi/revisi...
output of the curl cmd is:
{ "code" : "distribution.DeploymentPathConflict", "message" : "Path /v0/weather conflicts with existing deployment path for revision 4 of the APIProxy weatherapi in organization gd_satish", "contexts" : [ ] }
what did I miss in curl cmd? Can someone please suggest me.
thanks,
Davana
Solved! Go to Solution.
To override, you need to pass the Content-Type header along with your curl - this will undeploy the previous revision and deploy the current revision
try this,
curl -X POST -u davana.gongadi@abc.com:xxxx https://api.enterprise.apigee.com/v1/organizations/gd_satish/environments/test/pis/weatherapi/revisi... -H 'Content-Type: application/x-www-form-urlencoded'
Thanks
thanks for quick response Mukundha!.
Passing content-type header worked but we should pass -H next to post instead of at the end.
this curl cmd worked..
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -u davana.gongadi@abc.com:xxxx https://api.enterprise.apigee.com/v1/organizations/gd_satish/environments/test/apis/weatherapi/revis...
Thanks.