# com.getorbyt.community.createReport

> Published by [getorbyt.com](https://lexicon.garden/identity/did:plc:2xrqztnmzlckb3xfuuukupso)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.community.createReport)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.community.createReport/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.community.createReport/examples)

## Definitions

### `com.getorbyt.community.createReport`

**Type**: `procedure`

Creates a private Community-moderator report for a linked post. Requires authenticated service authorization.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `post` | `string` (at-uri) | Yes |  |
| `reason` | `string` | Yes |  |
| `community` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `report` | `ref` → `com.getorbyt.community.defs#reportView` | Yes |  |
| `created` | `boolean` | Yes |  |

#### Errors

- **AuthenticationRequired**
- **CommunityNotFound**
- **PostNotFound**
- **RateLimitExceeded**
- **InvalidRequest**

## Raw Schema

```json
{
  "id": "com.getorbyt.community.createReport",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "community",
            "post",
            "reason"
          ],
          "properties": {
            "post": {
              "type": "string",
              "format": "at-uri"
            },
            "reason": {
              "type": "string",
              "maxLength": 2000,
              "minLength": 1
            },
            "community": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "CommunityNotFound"
        },
        {
          "name": "PostNotFound"
        },
        {
          "name": "RateLimitExceeded"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "report",
            "created"
          ],
          "properties": {
            "report": {
              "ref": "com.getorbyt.community.defs#reportView",
              "type": "ref"
            },
            "created": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Creates a private Community-moderator report for a linked post. Requires authenticated service authorization."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
