code: @RequestMapping(value = "branches/{branchId}/filters/{name}", method = RequestMethod.PUT)
      public Ack saveFilter(@PathVariable ID branchId, @PathVariable String name, @RequestBody @Valid BuildFilterInput input) {
          if (!StringUtils.equals(name, input.getName())) {
              throw new IllegalArgumentException("The input name must be identical to the one in the URI.");
          }
          return buildFilterService.saveFilter(branchId, input.isShared(), name, input.getType(), input.getData());
      }
docs: Saving a filter