Query Trello card by string in card description

i need to find all cards on board that have exact string in description. It is possible to do with web interface, but how can i do that with rest api?

the only way i've found is to get all cards from board and iterate and find string in desc. But could i do that with GET /1/search ?

thanks

Upvotes: 0

Views: 300

Answers (1)

mshcruz
mshcruz

Reputation: 1987

As answered in a related question about getting card by name, you can use the search endpoint and pass the description in the query parameter: https://api.trello.com/1/search?modelTypes=cards&query=description:"This is my special card."

Upvotes: 0

Related Questions