prefect.server.api.saved_searches
Routes for interacting with saved search objects.
create_saved_search(saved_search, response, db=Depends(provide_database_interface))
async
Gracefully creates a new saved search from the provided schema.
If a saved search with the same name already exists, the saved search's fields are replaced.
Source code in src/prefect/server/api/saved_searches.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
delete_saved_search(saved_search_id=Path(..., description='The saved search id', alias='id'), db=Depends(provide_database_interface))
async
Delete a saved search by id.
Source code in src/prefect/server/api/saved_searches.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|
read_saved_search(saved_search_id=Path(..., description='The saved search id', alias='id'), db=Depends(provide_database_interface))
async
Get a saved search by id.
Source code in src/prefect/server/api/saved_searches.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
read_saved_searches(limit=dependencies.LimitBody(), offset=Body(0, ge=0), db=Depends(provide_database_interface))
async
Query for saved searches.
Source code in src/prefect/server/api/saved_searches.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|