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

A method (procedure) in the Atmosphere Groups standard, as published on the network. The page: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-mod-submitReport/

- Published at: at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.mod.submitReport
- In the spec: https://www.atmospheregroups.org/spec/lexicons/org-atgrp-mod-submitReport/, the same schema

## The schema as published

```json
{
  "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
}
```
