# social.colibri.beta.community.negateLabel

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

## Definitions

### `social.colibri.beta.community.negateLabel`

**Type**: `procedure`

Retracts a label by writing a negating one. The original label record is left in place.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `val` | `string` | Yes | The label value to retract. |
| `space` | `string` (space-ref) | Yes | The space the labelled record lives in. |
| `reason` | `string` | No | Human-readable reason for the retraction. |
| `subject` | `ref` → `social.colibri.beta.label#subject` | Yes | The labelled record. |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **AuthRequired**: The request is missing, malformed, or unverifiable service auth.
- **Forbidden**: The caller lacks the label.apply permission.
- **CommunityNotFound**: No community exists at the given DID.
- **SpaceNotFound**: No space exists at the given reference.
- **LabelNotFound**: No active label matching the subject and value exists to negate.
- **CredentialsUnavailable**: The AppView cannot act as the community because its stored credentials are missing or unusable.

## Raw Schema

```json
{
  "id": "social.colibri.beta.community.negateLabel",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "space",
            "subject",
            "val"
          ],
          "properties": {
            "val": {
              "type": "string",
              "description": "The label value to retract."
            },
            "space": {
              "type": "string",
              "format": "space-ref",
              "description": "The space the labelled record lives in."
            },
            "reason": {
              "type": "string",
              "maxLength": 512,
              "description": "Human-readable reason for the retraction."
            },
            "subject": {
              "ref": "social.colibri.beta.label#subject",
              "type": "ref",
              "description": "The labelled record."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request is missing, malformed, or unverifiable service auth."
        },
        {
          "name": "Forbidden",
          "description": "The caller lacks the label.apply permission."
        },
        {
          "name": "CommunityNotFound",
          "description": "No community exists at the given DID."
        },
        {
          "name": "SpaceNotFound",
          "description": "No space exists at the given reference."
        },
        {
          "name": "LabelNotFound",
          "description": "No active label matching the subject and value exists to negate."
        },
        {
          "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": "Retracts a label by writing a negating one. The original label record is left in place."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
