Atmosphere GroupsOpen specificationBeta
MenuClose

org.atgrp.mod.querySelfHistory

Get moderation history for the caller's account and records. Omits reports, notes, tags, and who acted. Works for former members. Requires service auth.

Kind
A method (query)
Record
at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.mod.querySelfHistory
In the spec
org.atgrp.mod.querySelfHistory, the same as published here.

main query

Parameters

FieldTypeDescription
sortstring
  • default: "newest"
  • knownValues: newest, oldest
group (required)string (did)
limitinteger
  • default: 50
  • minimum: 1
  • maximum: 100
cursorstring
subjectstring (uri)The caller's DID or one of their record URIs. Omit for all.

Output

Encoding: application/json

FieldTypeDescription
cursorstring
events (required)array of org.atgrp.mod.defs#eventView

Errors

  • GroupNotFound
  • InvalidSubject: The subject isn't the caller's account or record.
  • InvalidCursor
The schema as published
{
  "id": "org.atgrp.mod.querySelfHistory",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "GroupNotFound"
        },
        {
          "name": "InvalidSubject",
          "description": "The subject isn't the caller's account or record."
        },
        {
          "name": "InvalidCursor"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "events"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "events": {
              "type": "array",
              "items": {
                "ref": "org.atgrp.mod.defs#eventView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "group"
        ],
        "properties": {
          "sort": {
            "type": "string",
            "default": "newest",
            "knownValues": [
              "newest",
              "oldest"
            ]
          },
          "group": {
            "type": "string",
            "format": "did"
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          },
          "subject": {
            "type": "string",
            "format": "uri",
            "description": "The caller's DID or one of their record URIs. Omit for all."
          }
        }
      },
      "description": "Get moderation history for the caller's account and records. Omits reports, notes, tags, and who acted. Works for former members. Requires service auth."
    }
  },
  "lexicon": 1
}

All lexicons