# social.coves.aggregator.disable

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.aggregator.disable)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.aggregator.disable/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.aggregator.disable/examples)

## Definitions

### `social.coves.aggregator.disable`

**Type**: `procedure`

Disable an aggregator for a community. Updates the authorization record to set enabled=false. Requires moderator permissions.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `community` | `string` (at-identifier) | Yes | DID or handle of the community |
| `aggregatorDid` | `string` (did) | Yes | DID of the aggregator to disable |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | CID of the updated authorization record |
| `uri` | `string` (at-uri) | Yes | AT-URI of the updated authorization record |
| `disabledAt` | `string` (datetime) | No | When the aggregator was disabled |

#### Errors

- **NotAuthorized**: Caller is not a moderator of this community
- **AuthorizationNotFound**: Aggregator is not enabled for this community
- **AlreadyDisabled**: Aggregator is already disabled

## Raw Schema

```json
{
  "id": "social.coves.aggregator.disable",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "community",
            "aggregatorDid"
          ],
          "properties": {
            "community": {
              "type": "string",
              "format": "at-identifier",
              "description": "DID or handle of the community"
            },
            "aggregatorDid": {
              "type": "string",
              "format": "did",
              "description": "DID of the aggregator to disable"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "NotAuthorized",
          "description": "Caller is not a moderator of this community"
        },
        {
          "name": "AuthorizationNotFound",
          "description": "Aggregator is not enabled for this community"
        },
        {
          "name": "AlreadyDisabled",
          "description": "Aggregator is already disabled"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "CID of the updated authorization record"
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the updated authorization record"
            },
            "disabledAt": {
              "type": "string",
              "format": "datetime",
              "description": "When the aggregator was disabled"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Disable an aggregator for a community. Updates the authorization record to set enabled=false. Requires moderator permissions."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
