Create a filter
Create a new filter with a MongoDB aggregation pipeline.Request
Descriptive name for the filter
Optional detailed description of what the filter does
Survey to run the filter on:
ZTF, LSST, or DECamSurvey permissions mapping. For ZTF, this maps to program IDs. Required for surveys that need permissions.
MongoDB aggregation pipeline stages. Must start with a
$match stage.Response
Unique identifier for the filter
Filter name
Survey the filter runs on
Whether the filter is currently active
ID of the currently active filter version
Array of filter versions, each containing:
fid- Version identifierpipeline- Pipeline JSON stringchangelog- Optional change descriptioncreated_at- Creation timestamp (Julian Date)
List filters
Retrieve all filters you have access to. Admins see all filters; regular users see only their own.Get a specific filter
Retrieve details for a single filter by ID.Update filter metadata
Update a filter’s name, description, active status, or permissions.Request
New filter name
New description
Enable or disable the filter
Set which filter version is active. Must be a valid version ID from
fv array.Update survey permissions
Add a filter version
Create a new version of an existing filter with an updated pipeline.Request
New MongoDB aggregation pipeline
Description of changes in this version
Whether to make this version active immediately
Test a filter
Test a filter pipeline against real alert data without creating a filter.Request
Survey to test against
Survey permissions
Pipeline to test
Start Julian Date for test window
End Julian Date for test window (max 7 days from start)
List of object IDs to test (max 1000)
List of candidate IDs to test (max 100000)
Field to sort results by
Sort order:
Ascending or DescendingMaximum number of results to return
Response
The complete pipeline that was executed, including permissions filters
Array of matching alert documents
Test filter count
Get a count of alerts matching a filter without retrieving the full documents.Response
Number of alerts matching the filter
The complete pipeline that was executed
Get filter schema
Retrieve the Avro schema showing the data structure available for filtering.ZTF, LSST
Permissions
Only filter owners and admins can modify filters. All authenticated users can create filters and view their own.
Filter constraints
- Pipelines must start with a
$matchstage - Test time windows cannot exceed 7 days (7.0 JD)
- Maximum 1000 object IDs per test
- Maximum 100000 candidate IDs per test
- Surveys like ZTF require permissions to be defined