# social.colibri.beta.community.unban

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

## Definitions

### `social.colibri.beta.community.unban`

**Type**: `procedure`

Lifts a ban, letting the community issue the subject space credentials again.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `reason` | `string` | No | Human-readable reason for lifting the ban. |
| `subject` | `string` (did) | Yes | The member to unban. |
| `community` | `string` (did) | Yes | The community to lift the ban in. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Errors

- **AuthRequired**: The request is missing, malformed, or unverifiable service auth.
- **Forbidden**: The caller lacks the member.unban permission.
- **CommunityNotFound**: No community exists at the given DID.
- **NotBanned**: The subject is not currently banned from this community.
- **CredentialsUnavailable**: The AppView cannot act as the community because its stored credentials are missing or unusable.

## Raw Schema

```json
{
  "id": "social.colibri.beta.community.unban",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "community",
            "subject"
          ],
          "properties": {
            "reason": {
              "type": "string",
              "maxLength": 512,
              "description": "Human-readable reason for lifting the ban."
            },
            "subject": {
              "type": "string",
              "format": "did",
              "description": "The member to unban."
            },
            "community": {
              "type": "string",
              "format": "did",
              "description": "The community to lift the ban in."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request is missing, malformed, or unverifiable service auth."
        },
        {
          "name": "Forbidden",
          "description": "The caller lacks the member.unban permission."
        },
        {
          "name": "CommunityNotFound",
          "description": "No community exists at the given DID."
        },
        {
          "name": "NotBanned",
          "description": "The subject is not currently banned from this community."
        },
        {
          "name": "CredentialsUnavailable",
          "description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "description": "Lifts a ban, letting the community issue the subject space credentials again."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
