# social.colibri.labeler.unlinkExternalAccount

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

## Definitions

### `social.colibri.labeler.unlinkExternalAccount`

**Type**: `procedure`

Removes the link between the calling account and an external funding platform. Deletes the `social.colibri.labeler.attestation` record and negates any badge the link was the basis for. Authorized the same way as `social.colibri.labeler.linkExternalAccount`, so an account can only unlink itself.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `platform` | `string` | Yes | The external platform to unlink. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `unlinked` | `boolean` | Yes | False when there was no link to remove, which is not an error. |
| `negatedLabelVals` | `array` | No | Badge values revoked as part of unlinking. |

#### Errors

- **AuthRequired**: Missing, malformed, or unverifiable service auth.
- **InvalidRequest**: A parameter was missing or malformed.

## Raw Schema

```json
{
  "id": "social.colibri.labeler.unlinkExternalAccount",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "The external platform to unlink.",
              "knownValues": [
                "opencollective"
              ]
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "Missing, malformed, or unverifiable service auth."
        },
        {
          "name": "InvalidRequest",
          "description": "A parameter was missing or malformed."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "unlinked"
          ],
          "properties": {
            "unlinked": {
              "type": "boolean",
              "description": "False when there was no link to remove, which is not an error."
            },
            "negatedLabelVals": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 100
              },
              "description": "Badge values revoked as part of unlinking."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Removes the link between the calling account and an external funding platform. Deletes the `social.colibri.labeler.attestation` record and negates any badge the link was the basis for. Authorized the same way as `social.colibri.labeler.linkExternalAccount`, so an account can only unlink itself."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
