Complete api implementation for setting/retriving deployment status on a deployment