API side of deployment creation.