# com.getorbyt.community.manageTransfer

> Published by [getorbyt.com](https://lexicon.garden/identity/did:plc:2xrqztnmzlckb3xfuuukupso)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.community.manageTransfer)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.community.manageTransfer/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.community.manageTransfer/examples)

## Definitions

### `com.getorbyt.community.manageTransfer`

**Type**: `procedure`

Invites, accepts, declines, or cancels an ownership transfer. Requires authenticated service authorization; only the current declaration holder may invite or cancel and only the target may accept or decline.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | Required when inviting. |
| `action` | `string` | Yes |  |
| `community` | `string` (at-uri) | Yes |  |
| `replacementDeclarationUri` | `string` (at-uri) | No | Required when accepting. The AT-URI the target will write its continuation declaration at, in the target repository. Declared before the record is written: a continuation is only projected when an accepted transfer already names it. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `transfer` | `ref` → `com.getorbyt.community.defs#transferView` | Yes |  |

#### Errors

- **AuthenticationRequired**
- **CommunityNotFound**
- **TransferNotFound**
- **InsufficientRole**
- **InvalidAction**
- **InvalidState**

## Raw Schema

```json
{
  "id": "com.getorbyt.community.manageTransfer",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "community",
            "action"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did",
              "description": "Required when inviting."
            },
            "action": {
              "type": "string",
              "knownValues": [
                "invite",
                "accept",
                "decline",
                "cancel"
              ]
            },
            "community": {
              "type": "string",
              "format": "at-uri"
            },
            "replacementDeclarationUri": {
              "type": "string",
              "format": "at-uri",
              "description": "Required when accepting. The AT-URI the target will write its continuation declaration at, in the target repository. Declared before the record is written: a continuation is only projected when an accepted transfer already names it."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "CommunityNotFound"
        },
        {
          "name": "TransferNotFound"
        },
        {
          "name": "InsufficientRole"
        },
        {
          "name": "InvalidAction"
        },
        {
          "name": "InvalidState"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "transfer"
          ],
          "properties": {
            "transfer": {
              "ref": "com.getorbyt.community.defs#transferView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Invites, accepts, declines, or cancels an ownership transfer. Requires authenticated service authorization; only the current declaration holder may invite or cancel and only the target may accept or decline."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
