# org.atgrp.mod.querySubjects

List subjects in the moderation queue. Requires auth as the group.

A method (query) in the spec for Atmosphere Groups. The page: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-mod-querySubjects/

- Named in the spec: 13.3 Permission sets (https://www.atmospheregroups.org/spec/#permission-sets); 13.4 Methods (https://www.atmospheregroups.org/spec/#methods)
- In the spec's repository: https://tangled.org/atmospheregroups.org/spec/blob/0885261c9cd1af80e89908571f926c2d0c71771f/lexicons/org/atgrp/mod/querySubjects.json
- Published under the same name: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-mod-querySubjects/, the same schema

## The schema in the spec

```json
{
  "lexicon": 1,
  "id": "org.atgrp.mod.querySubjects",
  "defs": {
    "main": {
      "type": "query",
      "description": "List subjects in the moderation queue. Requires auth as the group.",
      "parameters": {
        "type": "params",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "open",
              "resolved"
            ],
            "description": "Omit for all."
          },
          "tags": {
            "type": "array",
            "maxLength": 25,
            "description": "Only subjects with any of these tags.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          "sort": {
            "type": "string",
            "knownValues": [
              "oldest",
              "newest",
              "updated"
            ],
            "default": "oldest",
            "description": "oldest and newest go by createdAt. updated puts the latest updatedAt first."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "subjects"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "subjects": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "org.atgrp.mod.defs#subjectView"
              }
            }
          }
        }
      },
      "errors": [
        {
          "name": "InvalidCursor"
        }
      ]
    }
  }
}
```
