# social.colibri.category

> 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.category)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.category/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.category/examples)

## Definitions

### `social.colibri.category`

**Type**: `record`

A category belongs to a community and contains multiple channels on Colibri.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | The name of the category. |
| `$type` | `string` (nsid) | No | The type of the record. |
| `community` | `string` (record-key) | Yes | The community this category belongs to. |
| `channelOrder` | `array` | Yes | The order of the channels in this category. |

## Raw Schema

```json
{
  "id": "social.colibri.category",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "channelOrder",
          "community"
        ],
        "properties": {
          "name": {
            "type": "string",
            "default": "New category",
            "maxLength": 32,
            "minLength": 1,
            "description": "The name of the category."
          },
          "$type": {
            "type": "string",
            "format": "nsid",
            "description": "The type of the record."
          },
          "community": {
            "type": "string",
            "format": "record-key",
            "description": "The community this category belongs to."
          },
          "channelOrder": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "record-key",
              "description": "A channel in this category."
            },
            "description": "The order of the channels in this category."
          }
        }
      },
      "description": "A category belongs to a community and contains multiple channels on Colibri."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
