class JobDefinitionRestController extends HerdBaseController {

    @RequestMapping(value = "/jobDefinitions/namespaces/{namespace}/jobNames/{jobName}", method = RequestMethod.PUT,
        consumes = {"application/xml", "application/json"})
    @Secured(SecurityFunctions.FN_JOB_DEFINITIONS_PUT)
    public JobDefinition updateJobDefinition(@PathVariable("namespace") String namespace, @PathVariable("jobName") String jobName,
        @RequestBody JobDefinitionUpdateRequest request) throws Exception
    {
        return jobDefinitionService.updateJobDefinition(namespace, jobName, request, true);
    }

}