# app.bivri.feed.createComment

> Published by [lexicons.bivri.app](https://lexicon.garden/identity/did:plc:uqat5a7hrbww3snbbinxgwah)

✓ This is the authoritative definition for this NSID.

## Description

Post a comment from the authenticated member's repository.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.createComment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.createComment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.feed.createComment/examples)

## Definitions

### `app.bivri.feed.createComment`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `parent` | `ref` → `com.atproto.repo.strongRef` | No | Strong reference to the comment being replied to. Omit for a top-level comment. |
| `content` | `string` | Yes | Comment text. |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | Strong reference to the artwork to comment on. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | CID of the comment record that was written. |
| `uri` | `string` (at-uri) | Yes | AT URI of the comment record that was written. |

## Raw Schema

```json
{
  "id": "app.bivri.feed.createComment",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "subject",
            "content"
          ],
          "properties": {
            "parent": {
              "ref": "com.atproto.repo.strongRef",
              "type": "ref",
              "description": "Strong reference to the comment being replied to. Omit for a top-level comment."
            },
            "content": {
              "type": "string",
              "maxLength": 10000,
              "description": "Comment text.",
              "maxGraphemes": 1000
            },
            "subject": {
              "ref": "com.atproto.repo.strongRef",
              "type": "ref",
              "description": "Strong reference to the artwork to comment on."
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "CID of the comment record that was written."
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT URI of the comment record that was written."
            }
          }
        },
        "encoding": "application/json"
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Post a comment from the authenticated member's repository."
}
```
