Atmosphere GroupsOpen specificationBeta
MenuClose

org.atgrp.mod.querySubjects

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

Kind
A method (query)
Part of
The spec
Published
On the network, the same as the spec has it.

main query

Parameters

FieldTypeDescription
statusstring
  • enum: open, resolved
Omit for all.
tagsarray of string
  • each item, minLength: 1
  • each item, maxLength: 128
  • array maxLength: 25
Only subjects with any of these tags.
sortstring
  • default: "oldest"
  • knownValues: oldest, newest, updated
oldest and newest go by createdAt. updated puts the latest updatedAt first.
limitinteger
  • default: 50
  • minimum: 1
  • maximum: 100
cursorstring

Output

Encoding: application/json

FieldTypeDescription
cursorstring
subjects (required)array of org.atgrp.mod.defs#subjectView

Errors

  • InvalidCursor
The schema in the spec
{
  "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"
        }
      ]
    }
  }
}

All of the spec's lexicons