{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Report content for moderation review. Requires authentication. Duplicate reports from the same user for the same content are idempotent.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "description": {
              "description": "Optional additional details about the report",
              "maxLength": 2000,
              "type": "string"
            },
            "reason": {
              "description": "Reason for reporting",
              "knownValues": [
                "spam",
                "inappropriate",
                "copyright",
                "misinformation",
                "other"
              ],
              "type": "string"
            },
            "targetCollection": {
              "description": "Collection NSID of the target content",
              "type": "string"
            },
            "targetUri": {
              "description": "AT-URI of the content to report",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "targetUri",
            "targetCollection",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "id": {
              "description": "Report ID",
              "type": "integer"
            },
            "success": {
              "description": "Whether the report was created",
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "id"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pub.chive.moderation.createReport",
  "lexicon": 1,
  "revision": 1
}
