<@ULVA73B9P> In Prefect 3.1 there's a REST API end...
# ask-marvin
p
@Marvin In Prefect 3.1 there's a REST API endpoint for /api/automation/filter which lets you filter automations based on a list of strings. It seems that these need to be an exact match. Is there any way to find all automations using a prefix to the name like "my-automations-" which would find "my-automations-a" and "my-automations-b" but not "your-automations-a"?
m
It seems that the documentation for Prefect 3.x doesn't provide specific details about using prefixes for filtering automations via the
/api/automation/filter
endpoint. The general functionality for automations allows for flexible event-driven actions, but the exact mechanism for filtering by name prefix isn't explicitly mentioned. If the current API requires exact matches, and there's no built-in support for prefix filtering, you might need to retrieve all automations and apply client-side filtering based on your prefix criteria. Alternatively, you could look into custom triggers if they fit your use case, though they are typically event-based rather than name-based. For more details on automations in Prefect 3.x, you can refer to the automations documentation. If you're looking for more advanced features or if this is a limitation, consider reaching out to the Prefect community or checking for any updates in the Prefect GitHub repository.