# org.atgrp.mod.submitAppeal

Appeal a label or ejection on the caller's account or one of their records, reopening it in the moderation queue. Works for former members. Requires service auth.

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

- Named in the spec: 9 Moderation (https://www.atmospheregroups.org/spec/#moderation); 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/submitAppeal.json
- Published under the same name: https://www.atmospheregroups.org/reference/lexicons/org-atgrp-mod-submitAppeal/, the same schema

## The schema in the spec

```json
{
  "lexicon": 1,
  "id": "org.atgrp.mod.submitAppeal",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Appeal a label or ejection on the caller's account or one of their records, reopening it in the moderation queue. Works for former members. Requires service auth.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "group",
            "subject"
          ],
          "properties": {
            "group": {
              "type": "string",
              "format": "did"
            },
            "subject": {
              "type": "string",
              "format": "uri",
              "description": "The caller's DID or one of their record URIs."
            },
            "note": {
              "type": "string",
              "maxGraphemes": 2000,
              "maxLength": 20000
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "eventId",
            "createdAt"
          ],
          "properties": {
            "eventId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            },
            "createdAt": {
              "type": "string",
              "format": "datetime"
            }
          }
        }
      },
      "errors": [
        {
          "name": "GroupNotFound"
        },
        {
          "name": "InvalidSubject",
          "description": "The subject isn't the caller's account or record."
        },
        {
          "name": "NotAppealable",
          "description": "The subject has no label or ejection."
        }
      ]
    }
  }
}
```
