--- title: "Add a filter" source_url: https://dev.digicert.com/certcentral-apis/report-library-api/column-filters/add-a-filter.html --- To add a filter, include the `filters` array in your API request to create or edit a report. In your JSON payload, place the `filters` array inside the `report_metadata` object. The `filters` array is a list of objects. Each object defines a single filter. Filter objects include these key/value pairs:
| Name | Type | Description |
|---|---|---|
| column_identifier | string | Column to filter by. Allowed values: Varies by report type. To get the list of columns you can use as filters for a given report type, use the List columns endpoint. Note: In most cases, you can only add filters for columns included in the report. In other words, to add a filter, the column_identifier value for the filter must also be present in the report_metadata.columns array. However, some columns can only be used as filters. For these columns, you can add a filter, but you cannot include the column's identifier in the report_metadata.columns array. To see if a column can only be used as a filter, check the value of the filter_only parameter in the List columns API response. |
| values | array of strings | List of values. For each row in the report, the value of the filtered column (column_identifier) is compared to the values in this list. A row is only included in the report if the filtered column contains a value that meets the filter criteria.Not used if the filter_type for the column is static. For more information, see Filters reference: Types and operators. |
| filter_identifier | string | Operator that defines how to determine if the value in a column meets the filter criteria. Allowed values: Varies by column. To get the list of filter operators available for a given report type, use the List columns endpoint. To learn more about filter operators, see Filters reference: Types and operators. |