Atmosphere GroupsOpen specificationBeta
MenuClose

org.atgrp.mod.submitReport

Report an account or record in a group, opening or reopening it in the moderation queue. The caller must be able to read the subject's space. Requires service auth.

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

main procedure

Input

Encoding: application/json

FieldTypeDescription
cidstring (cid)If set, a specific version of the record.
rulestring (at-uri)The group rule the subject breaks.
group (required)string (did)
reasonstring
  • maxLength: 20000
  • maxGraphemes: 2000
subject (required)string (uri)An account DID or record URI.
reasonType (required)org.atgrp.mod.defs#reasonTypeFor reasonViolation, cite the broken rule in rule.

Output

Encoding: application/json

FieldTypeDescription
eventId (required)string
  • minLength: 1
  • maxLength: 512
createdAt (required)string (datetime)

Errors

  • GroupNotFound
  • InvalidSubject: The subject isn't in this group.
The schema as published
{
  "id": "org.atgrp.mod.submitReport",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "group",
            "subject",
            "reasonType"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "If set, a specific version of the record."
            },
            "rule": {
              "type": "string",
              "format": "at-uri",
              "description": "The group rule the subject breaks."
            },
            "group": {
              "type": "string",
              "format": "did"
            },
            "reason": {
              "type": "string",
              "maxLength": 20000,
              "maxGraphemes": 2000
            },
            "subject": {
              "type": "string",
              "format": "uri",
              "description": "An account DID or record URI."
            },
            "reasonType": {
              "ref": "org.atgrp.mod.defs#reasonType",
              "type": "ref",
              "description": "For reasonViolation, cite the broken rule in rule."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "GroupNotFound"
        },
        {
          "name": "InvalidSubject",
          "description": "The subject isn't in this group."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "eventId",
            "createdAt"
          ],
          "properties": {
            "eventId": {
              "type": "string",
              "maxLength": 512,
              "minLength": 1
            },
            "createdAt": {
              "type": "string",
              "format": "datetime"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Report an account or record in a group, opening or reopening it in the moderation queue. The caller must be able to read the subject's space. Requires service auth."
    }
  },
  "lexicon": 1
}

All lexicons