# fyi.opensocial.importAccountSpace

> 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.importAccountSpace)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.importAccountSpace/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.importAccountSpace/examples)

## Definitions

### `fyi.opensocial.importAccountSpace`

**Type**: `procedure`

While an account's move here is pending (importAccount), bring one of its spaces, as its own server serves it: `meta`, a space it governs (com.atproto.space.exportSpaceMeta's archive), before any repo in it; `repo`, its own repo in a space it wrote in (com.atproto.space.getRepo's archive); or `blob`, one of its files in a space, before the repos that hold it. Only for whoever started the move, and only the account's own.

#### Input

**Encoding**: `*/*`

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` | No |  |
| `records` | `integer` | No |  |
| `space` | `string` | No |  |

#### Errors

- **NotFound**
- **NotSpaceOwner**
- **InvalidArchive**
- **UnsupportedPolicy**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "While an account's move here is pending (importAccount), bring one of its spaces, as its own server serves it: `meta`, a space it governs (com.atproto.space.exportSpaceMeta's archive), before any repo in it; `repo`, its own repo in a space it wrote in (com.atproto.space.getRepo's archive); or `blob`, one of its files in a space, before the repos that hold it. Only for whoever started the move, and only the account's own.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "NotSpaceOwner"
        },
        {
          "name": "InvalidArchive"
        },
        {
          "name": "UnsupportedPolicy"
        }
      ],
      "input": {
        "encoding": "*/*"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "type": "string"
            },
            "records": {
              "type": "integer"
            },
            "space": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          },
          "part": {
            "knownValues": [
              "meta",
              "repo",
              "blob"
            ],
            "type": "string"
          }
        },
        "required": [
          "did",
          "part"
        ],
        "type": "params"
      },
      "type": "procedure"
    }
  },
  "id": "fyi.opensocial.importAccountSpace",
  "lexicon": 1
}
```
