{
  "$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
}
