# social.colibri.community.create

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

## Links

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

## Definitions

### `social.colibri.community.create`

**Type**: `procedure`

Creates a community, bootstrapping its DID repo with a default category, channel, owner role, and member record.

#### Input

**Encoding**: `multipart/form-data`

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `member` | `string` (at-uri) | Yes |  |
| `channel` | `string` (at-uri) | Yes |  |
| `category` | `string` (at-uri) | Yes |  |
| `community` | `string` (at-uri) | Yes |  |
| `ownerRole` | `string` (at-uri) | Yes |  |

#### Errors

- **AuthRequired**: Missing, malformed, or unverifiable service auth.
- **InvalidRequest**: A parameter or body field was missing or malformed.
- **PdsUnavailable**: The PDS this operation needs is unreachable or is not a PDS.
- **UpstreamFailure**: A service outside this AppView failed.

## Raw Schema

```json
{
  "id": "social.colibri.community.create",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "encoding": "multipart/form-data",
        "description": "Optional community image blobs, as `picture` and `banner` parts."
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "Missing, malformed, or unverifiable service auth."
        },
        {
          "name": "InvalidRequest",
          "description": "A parameter or body field was missing or malformed."
        },
        {
          "name": "PdsUnavailable",
          "description": "The PDS this operation needs is unreachable or is not a PDS."
        },
        {
          "name": "UpstreamFailure",
          "description": "A service outside this AppView failed."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "community",
            "category",
            "channel",
            "ownerRole",
            "member"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            },
            "member": {
              "type": "string",
              "format": "at-uri"
            },
            "channel": {
              "type": "string",
              "format": "at-uri"
            },
            "category": {
              "type": "string",
              "format": "at-uri"
            },
            "community": {
              "type": "string",
              "format": "at-uri"
            },
            "ownerRole": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "name"
        ],
        "properties": {
          "pds": {
            "type": "string",
            "description": "Bring-your-own PDS endpoint."
          },
          "name": {
            "type": "string"
          },
          "password": {
            "type": "string",
            "description": "Bring-your-own account password."
          },
          "identifier": {
            "type": "string",
            "description": "Bring-your-own DID or handle."
          },
          "description": {
            "type": "string"
          },
          "requiresApprovalToJoin": {
            "type": "boolean"
          }
        }
      },
      "description": "Creates a community, bootstrapping its DID repo with a default category, channel, owner role, and member record."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
