# social.colibri.beta.bridge.update

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.update)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.update/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.update/examples)

## Definitions

### `social.colibri.beta.bridge.update`

**Type**: `procedure`

Changes which channels a bridge relays, or pauses and resumes it. Omitted fields stay as they are.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `community` | `string` (did) | Yes | The community the registration belongs to. |
| `enabled` | `boolean` | No | Whether the bridge may write. |
| `links` | `array` | No | The complete set of linked channels, replacing the current one. |
| `mirrorModeration` | `boolean` | No | Whether moderation crosses the bridge. |
| `registration` | `string` (tid) | Yes | Record key of the registration. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `registration` | `ref` → `social.colibri.beta.bridge.defs#registrationView` | Yes | The registration. |

#### Errors

- **AuthRequired**: The request is missing, malformed, or unverifiable service auth.
- **Forbidden**: The caller lacks the community.manage permission.
- **CommunityNotFound**: No community exists at the given DID.
- **RegistrationNotFound**: The community has no bridge registration with that id.
- **ChannelNotFound**: A link names a channel this community does not have.
- **CredentialsUnavailable**: The AppView cannot act as the community because its stored credentials are missing or unusable.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Changes which channels a bridge relays, or pauses and resumes it. Omitted fields stay as they are.",
      "errors": [
        {
          "description": "The request is missing, malformed, or unverifiable service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller lacks the community.manage permission.",
          "name": "Forbidden"
        },
        {
          "description": "No community exists at the given DID.",
          "name": "CommunityNotFound"
        },
        {
          "description": "The community has no bridge registration with that id.",
          "name": "RegistrationNotFound"
        },
        {
          "description": "A link names a channel this community does not have.",
          "name": "ChannelNotFound"
        },
        {
          "description": "The AppView cannot act as the community because its stored credentials are missing or unusable.",
          "name": "CredentialsUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "community": {
              "description": "The community the registration belongs to.",
              "format": "did",
              "type": "string"
            },
            "enabled": {
              "description": "Whether the bridge may write.",
              "type": "boolean"
            },
            "links": {
              "description": "The complete set of linked channels, replacing the current one.",
              "items": {
                "description": "A link.",
                "ref": "social.colibri.beta.bridge.defs#link",
                "type": "ref"
              },
              "maxLength": 500,
              "type": "array"
            },
            "mirrorModeration": {
              "description": "Whether moderation crosses the bridge.",
              "type": "boolean"
            },
            "registration": {
              "description": "Record key of the registration.",
              "format": "tid",
              "type": "string"
            }
          },
          "required": [
            "community",
            "registration"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "registration": {
              "description": "The registration.",
              "ref": "social.colibri.beta.bridge.defs#registrationView",
              "type": "ref"
            }
          },
          "required": [
            "registration"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.bridge.update",
  "lexicon": 1
}
```
