Is it possible to get all cards which are in the same collection? In the API Docs I didn’t find a “collection_id” like “parent_id” for e.g. - that would be really helpful for my usecase.
Collection inclusion does not occur at the API level, so you unfortunately cannot pass a collection ID to get the cards. However, the filter_group
in the select endpoint is 1-to-1 compatible with the collection filter_group
, except for RegEx filters which are not allowed in the API (and will return an error if you attempt to use one there).
So if you just extract the filter_group
from a collection and send that to /v1/cards/get/select
, the API should return all the cards from that collection.
1 Like
Thanks for that hint, Connor. Didn’t think so far
It would be a nice feature, though, to be able to query collections. It saves us from duplicating filtering rules between SuperNotes and API requests.