# place.stream.moderation.createGate

> Published by [did:web:longos.iameli.link](https://lexicon.garden/identity/did:web:longos.iameli.link)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.moderation.createGate)
- [Documentation](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.moderation.createGate/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:longos.iameli.link/place.stream.moderation.createGate/examples)

## Definitions

### `place.stream.moderation.createGate`

**Type**: `procedure`

Create a gate (hide message) on behalf of a streamer. Requires 'hide' permission. Creates a place.stream.chat.gate record in the streamer's repository.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `streamer` | `string` (did) | Yes | The DID of the streamer. |
| `messageUri` | `string` (at-uri) | Yes | The AT-URI of the chat message to hide. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | The CID of the created gate record. |
| `uri` | `string` (at-uri) | Yes | The AT-URI of the created gate record. |

#### Errors

- **Unauthorized**: The request lacks valid authentication credentials.
- **Forbidden**: The caller does not have permission to hide messages for this streamer.
- **SessionNotFound**: The streamer's OAuth session could not be found or is invalid.

## Raw Schema

```json
{
  "id": "place.stream.moderation.createGate",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "streamer",
            "messageUri"
          ],
          "properties": {
            "streamer": {
              "type": "string",
              "format": "did",
              "description": "The DID of the streamer."
            },
            "messageUri": {
              "type": "string",
              "format": "at-uri",
              "description": "The AT-URI of the chat message to hide."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "Unauthorized",
          "description": "The request lacks valid authentication credentials."
        },
        {
          "name": "Forbidden",
          "description": "The caller does not have permission to hide messages for this streamer."
        },
        {
          "name": "SessionNotFound",
          "description": "The streamer's OAuth session could not be found or is invalid."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "The CID of the created gate record."
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "The AT-URI of the created gate record."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": null,
      "description": "Create a gate (hide message) on behalf of a streamer. Requires 'hide' permission. Creates a place.stream.chat.gate record in the streamer's repository."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
