@Override public IDeviceEvent updateDeviceEvent(String eventId, IDeviceEventCreateRequest request) throws SiteWhereException { return delegate.updateDeviceEvent(eventId, request); } }
/** * Update information for an existing device event. * * @param eventId * @param request * @param servletRequest * @return * @throws SiteWhereException */ @RequestMapping(value = "/{eventId}", method = RequestMethod.PUT) @ResponseBody @ApiOperation(value = "Update event by unique id") @Secured({ SiteWhereRoles.REST }) @Documented(examples = { @Example(stage = Stage.Response, json = Assignments.CreateAssignmentMeasurementsResponse.class, description = "getEventByIdMeasurementsResponse.md"), @Example(stage = Stage.Response, json = Assignments.CreateAssignmentLocationResponse.class, description = "getEventByIdLocationResponse.md"), @Example(stage = Stage.Response, json = Assignments.CreateAssignmentAlertResponse.class, description = "getEventByIdAlertResponse.md") }) public IDeviceEvent updateEvent(@ApiParam(value = "Event id", required = true) @PathVariable String eventId, @RequestBody DeviceEventCreateRequest request, HttpServletRequest servletRequest) throws SiteWhereException { Tracer.start(TracerCategory.RestApiCall, "updateEvent", LOGGER); try { return SiteWhere.getServer().getDeviceEventManagement(getTenant(servletRequest)).updateDeviceEvent(eventId, request); } finally { Tracer.stop(LOGGER); } }