Hi
How can I deploy the latest imported revision without knowing/undeploying the current deployed version?
Do we need to always undeploy the deployed version and then deploy the latest imported version?
Is there a management API, which can directly deploy the latest imported version without need of two steps , first to undeploy the deployed version and second to deploy the latest imported revision?
I tried using below API with query parameter delay=2 and override=true but it didn't work.
Thanks
Solved! Go to Solution.
Yes, the API call you referenced is the one you want. It works.
Try a longer delay. 2 seconds is not long enough. It will take longer than that to deploy a revision.
The call looks like this:
POST \ -H "content-type : application/x-www-form-urlencoded" \ "${mgmtserver} /v1 /o /${org} /e /${environment} /apis /${proxyname} /revisions /${rev} /deployments" \ -d 'override=true&delay=60'
(Collapse spaces as necessary. If I leave them in then the formatted code is not rendered here. Blasted forum.)