Possible to get id of all "child" items of a parent via API?
I feel I must be missing something... via API, I can get the number of children of a parent item (numChildren), but I cannot get their IDs.
Am I missing this somehow? or must one really sync all the collection, and from there see which items are children of the same parent?
The point is to include this in a script that would identify instances when an item has both a pdf and an html attachment (possibly combining it with other criteria).
Am I missing this somehow? or must one really sync all the collection, and from there see which items are children of the same parent?
The point is to include this in a script that would identify instances when an item has both a pdf and an html attachment (possibly combining it with other criteria).
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
<userOrGroupPrefix>/items/<itemKey>/children
, but if you're doing it for all items it may indeed be simpler/faster to just make non-/top
requests and match up the child items to their parents.(For other API questions, best to post to zotero-dev — we try to keep technical discussions there.)
And thanks for the tip on zotero-dev, I'll keep this in mind.