# fyi.opensocial.completeImport

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.completeImport)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.completeImport/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.completeImport/examples)

## Definitions

### `fyi.opensocial.completeImport`

**Type**: `procedure`

Finish moving an account here: send the PLC operation its old server signed, which must give it to this host as importAccount said, switch it on and tell the network, and make the group's spaces with the caller as its admin. Only for whoever started the move.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `operation` | `unknown` | Yes | The signed PLC operation, as com.atproto.identity.signPlcOperation answers it. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `address` | `string` (handle) | Yes |  |
| `did` | `string` (did) | Yes |  |
| `handle` | `string` (handle) | Yes |  |
| `members` | `string` | Yes |  |
| `meta` | `string` | Yes |  |

#### Errors

- **NotFound**
- **InvalidOperation**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Finish moving an account here: send the PLC operation its old server signed, which must give it to this host as importAccount said, switch it on and tell the network, and make the group's spaces with the caller as its admin. Only for whoever started the move.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "InvalidOperation"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "operation": {
              "description": "The signed PLC operation, as com.atproto.identity.signPlcOperation answers it.",
              "type": "unknown"
            }
          },
          "required": [
            "did",
            "operation"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "address": {
              "format": "handle",
              "type": "string"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "handle": {
              "format": "handle",
              "type": "string"
            },
            "members": {
              "type": "string"
            },
            "meta": {
              "type": "string"
            }
          },
          "required": [
            "did",
            "handle",
            "address",
            "meta",
            "members"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.completeImport",
  "lexicon": 1
}
```
