code: @RequestMapping(value = "changeLog/fileFilter/{projectId}/create", method = RequestMethod.POST)
      public Resource<SCMFileChangeFilter> createChangeLogFileFilter(@PathVariable ID projectId, @RequestBody SCMFileChangeFilter filter) {
          securityService.checkProjectFunction(projectId.get(), ProjectConfig.class);
          return securityService.asAdmin(() -> {
              // Loads the project
              Project project = structureService.getProject(projectId);
              // Gets the store
              SCMFileChangeFilters config = entityDataService.retrieve(
                      project,
                      SCMFileChangeFilters.class.getName(),
                      SCMFileChangeFilters.class
              );
              if (config == null) config = SCMFileChangeFilters.create();
              // Updates the store
              config = config.save(filter);
              // Saves the store back
              entityDataService.store(project, SCMFileChangeFilters.class.getName(), config);
              // OK
              return getChangeLogFileFilter(projectId, filter.getName());
          });
      }
docs: Adding a change log file filter