public IActionResult Put(string id, [FromBody] UpdateJobModel jobModel)
        {
            // only cancelled is supported for now.
            if (jobModel.Status != DeploymentJobStatus.CANCELLED)
            {
                var error = new ErrorModel(
                    "JobStatusNotSupported",
                    $"Status ${jobModel.Status} is currently not supported for job updates.",
                    HttpStatusCode.BadRequest); // ?? 422 Unprocessable Entity

                return(BadRequest(error));
            }

            _deploymentService.CancelJob(id);
            return(Ok());
        }