node.js - How to search in Trello API only for not-archived cards -


i'm trying create simple trello board search, got problem, , couldn't solve it: both archived & not-archived cards in search. parameter/something else need change in order not-archived cards?

the url i'm sending request is:

"https://api.trello.com/1/search?idboards=" + trello_board_id + "&key=" + trello_key + "&modeltypes=cards&query=" + query + "&card_fields=name,idattachmentcover,url" 

you can achieve through use of [board_fields] option on board's endpoint. case, closed=false non-archived cards. directs api return cards have not been archived.

source: trello docs


Comments