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).

Repository @zeens.app did:plc:pwpuqwge6g7xrjmfbw73uycw namespace authority
Details · query
Kindquery
Authorityzeens.app
Indexed
cid bafyreigz5pjieopla5z2rbuu6vi74gypx2vzkr4legn6lpfv7pr5fh22xe

Checks

Valid Lint pass
JSONDownload
{
  "$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
}