@ApiOperation(value = "Updates the status of a meta alert to either 'ACTIVE' or 'INACTIVE'.") @ApiResponse(message = "Returns the complete metaalert document with the updated status.", code = 200) @RequestMapping(value = "/update/status/{guid}/{status}", method = RequestMethod.POST) ResponseEntity<Document> updateMetaAlertStatus( final @ApiParam(name = "guid", value = "Meta alert GUID", required = true) @PathVariable String guid, final @ApiParam(name = "status", value = "Meta alert status with a value of either 'ACTIVE' or 'INACTIVE'", required = true) @PathVariable String status) throws RestException { return new ResponseEntity<>(metaAlertService.updateMetaAlertStatus(guid, MetaAlertStatus.valueOf(status.toUpperCase())), HttpStatus.OK); } }