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

- Kind: procedure
- Authority: mod.atgrp.org
- Lexicon: 1
- Published by [lex.atgrp.org](https://lexicon.garden/identity/did:plc:4pt2cnpyvfgn5b7uxwn2shwv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.mod.submitAppeal)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.mod.submitAppeal/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.mod.submitAppeal/analytics)

## Procedure (`org.atgrp.mod.submitAppeal`)

Type: procedure · POST

### Input (application/json)

- `group` (string · did, required)
- `note` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `subject` (string · uri, required): The caller's DID or one of their record URIs.

### Output (application/json)

- `createdAt` (string · datetime, required)
- `eventId` (string, required)
  - Constraints: minLength: 1, maxLength: 512

### Errors

- `GroupNotFound`: No description in schema.
- `InvalidSubject`: The subject isn't the caller's account or record.
- `NotAppealable`: The subject has no label or ejection.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "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.",
      "errors": [
        {
          "name": "GroupNotFound"
        },
        {
          "description": "The subject isn't the caller's account or record.",
          "name": "InvalidSubject"
        },
        {
          "description": "The subject has no label or ejection.",
          "name": "NotAppealable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "format": "did",
              "type": "string"
            },
            "note": {
              "maxGraphemes": 2000,
              "maxLength": 20000,
              "type": "string"
            },
            "subject": {
              "description": "The caller's DID or one of their record URIs.",
              "format": "uri",
              "type": "string"
            }
          },
          "required": [
            "group",
            "subject"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "createdAt": {
              "format": "datetime",
              "type": "string"
            },
            "eventId": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "eventId",
            "createdAt"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "org.atgrp.mod.submitAppeal",
  "lexicon": 1
}
```
