@@ -814,6 +814,7 @@ async def get_crawl_configs(
814814 description : Optional [str ] = None ,
815815 tags : Optional [List [str ]] = None ,
816816 tag_match : Optional [ListFilterType ] = ListFilterType .AND ,
817+ dedupe_coll_id : Optional [UUID ] = None ,
817818 last_crawl_state : list [TYPE_ALL_CRAWL_STATES ] | None = None ,
818819 schedule : Optional [bool ] = None ,
819820 is_crawl_running : Optional [bool ] = None ,
@@ -868,6 +869,9 @@ async def get_crawl_configs(
868869 if first_seed :
869870 aggregate .extend ([{"$match" : {"firstSeed" : first_seed }}])
870871
872+ if dedupe_coll_id :
873+ aggregate .extend ([{"$match" : {"dedupeCollId" : first_seed }}])
874+
871875 if sort_by :
872876 if sort_by not in ALLOWED_SORT_KEYS :
873877 raise HTTPException (status_code = 400 , detail = "invalid_sort_by" )
@@ -1728,6 +1732,7 @@ async def get_crawl_configs(
17281732 description = 'Defaults to `"and"` if omitted' ,
17291733 ),
17301734 ] = ListFilterType .AND ,
1735+ dedupeCollId : Optional [UUID ] = None ,
17311736 last_crawl_state : Annotated [
17321737 list [TYPE_ALL_CRAWL_STATES ] | None ,
17331738 Query (alias = "lastCrawlState" , title = "Last Crawl State" ),
@@ -1765,6 +1770,7 @@ async def get_crawl_configs(
17651770 description = description ,
17661771 tags = tags ,
17671772 tag_match = tag_match ,
1773+ dedupe_coll_id = dedupeCollId ,
17681774 last_crawl_state = last_crawl_state ,
17691775 schedule = schedule ,
17701776 is_crawl_running = is_crawl_running ,
0 commit comments