<@ULVA73B9P> in Prefect server, is there a way to ...
# ask-marvin
h
@Marvin in Prefect server, is there a way to create a Notification via code?
m
Creating a notification via code on Prefect Server doesn't seem to be directly documented. However, Prefect Server does support notifications for various services such as Slack, Microsoft Teams, etc. To configure a notification in Prefect Server, you typically go to the Notifications page in the UI and select "Create Notification." You can specify conditions such as which run states should trigger a notification and tags to filter which flow runs are covered by the notification. While there is no explicit code example provided in the documentation excerpts, it's possible that configuring notifications programmatically would require interaction with Prefect's backend API or utilizing an appropriate GraphQL mutation if that's supported by Prefect Server. Such operations are not explicitly documented in the provided excerpts. For more detailed information, you might want to consult the Prefect documentation on hosting or seek help from the Prefect community if this is a less common use case. If there are API endpoints or GraphQL mutations available for managing notifications, you would approach this by crafting proper requests or mutations in your code to interact with Prefect's backend services.