def METHOD_NAME(self):
    """
    ---
    description: POST a new filter.
    tags:
      - filters
    requestBody:
      content:
        application/json:
          schema: FilterNoID
    responses:
      200:
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/Success'
                - type: object
                  properties:
                    data:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: New filter ID
    """
    data = self.get_json()
    with self.Session() as session:
        schema = Filter.__schema__()
        try:
            fil = schema.load(data)
        except ValidationError as e:
            return self.error(
                "Invalid/missing parameters: " f"{e.normalized_messages()}"
            )
        session.add(fil)
        session.commit()
        return self.success(data={"id": fil.id})