app.zeens.getCollectionsContaining
For a viewer, list which of their own collections (private + public) currently contain a given subject URI. Each match includes the parent collection's name, rkey, and visibility. Used by the 'Add to collection' modal to show which boxes are already checked, and by the post-detail page to render a 'part of collection' pill (public collections only).
Details · query
| Kind | query |
|---|---|
| Authority | zeens.app |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "For a viewer, list which of their own collections (private + public) currently contain a given subject URI. Each match includes the parent collection's name, rkey, and visibility. Used by the 'Add to collection' modal to show which boxes are already checked, and by the post-detail page to render a 'part of collection' pill (public collections only).",
"output": {
"encoding": "application/json"
},
"parameters": {
"properties": {
"subject": {
"description": "AT-URI of the post or article.",
"format": "at-uri",
"type": "string"
},
"viewer": {
"description": "DID of the requester (collections owner).",
"format": "did",
"type": "string"
}
},
"required": [
"viewer",
"subject"
],
"type": "params"
},
"target_collection": "app.zeens.collectionItem",
"type": "query"
}
},
"id": "app.zeens.getCollectionsContaining",
"lexicon": 1
}