# social.grain.unspecced.createPoolComment

> Comment on a gallery in a group's pool. The comment is the viewer's own record, written into the pool beside the gallery it answers, so only that group's members can read it.

- Kind: procedure
- Authority: unspecced.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.createPoolComment)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.createPoolComment/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.createPoolComment/analytics)

## Procedure (`social.grain.unspecced.createPoolComment`)

Type: procedure · POST

### Input (application/json)

- `facets` (array)
  - `items` (ref)
    - Reference: `app.bsky.richtext.facet`
- `gallery` (string · at-uri, required)
- `group` (string · did, required)
- `replyTo` (string · at-uri)
- `text` (string, required)
  - Constraints: maxLength: 3000

### Output (application/json)

- `rkey` (string, required)
- `uri` (string · at-uri, required)

### Errors

- `NotAuthorized`: The viewer is not a member of this pool.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Comment on a gallery in a group's pool. The comment is the viewer's own record, written into the pool beside the gallery it answers, so only that group's members can read it.",
      "errors": [
        {
          "description": "The viewer is not a member of this pool.",
          "name": "NotAuthorized"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "facets": {
              "items": {
                "ref": "app.bsky.richtext.facet",
                "type": "ref"
              },
              "type": "array"
            },
            "gallery": {
              "format": "at-uri",
              "type": "string"
            },
            "group": {
              "format": "did",
              "type": "string"
            },
            "replyTo": {
              "format": "at-uri",
              "type": "string"
            },
            "text": {
              "maxLength": 3000,
              "type": "string"
            }
          },
          "required": [
            "group",
            "gallery",
            "text"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "rkey": {
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "rkey"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.unspecced.createPoolComment",
  "lexicon": 1
}
```
