# pub.chive.moderation.createReport

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.moderation.createReport)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.moderation.createReport/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.moderation.createReport/examples)

## Definitions

### `pub.chive.moderation.createReport`

**Type**: `procedure`

Report content for moderation review. Requires authentication. Duplicate reports from the same user for the same content are idempotent.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `reason` | `string` | Yes | Reason for reporting |
| `targetUri` | `string` (at-uri) | Yes | AT-URI of the content to report |
| `description` | `string` | No | Optional additional details about the report |
| `targetCollection` | `string` | Yes | Collection NSID of the target content |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `integer` | Yes | Report ID |
| `success` | `boolean` | Yes | Whether the report was created |

#### Errors

- **AuthenticationRequired**
- **InvalidRequest**

## Raw Schema

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