# fyi.opensocial.migrateExport

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

## Definitions

### `fyi.opensocial.migrateExport`

**Type**: `query`

On the source host, for the destination of a move migratePrepare started: a part of the group nothing public serves whole. `meta` is a space's meta archive (as com.atproto.space.exportSpaceMeta serves one), `repo` the group's own repo in a space (as com.atproto.space.getRepo does), `blobs` the list of its files and `blob` one of them. Authorized by migratePrepare's token, for an hour.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | No |  |
| `group` | `string` (did) | Yes |  |
| `leaving` | `boolean` | No | For a move to a plain PDS: a space's meta archive as a memberspace whose member list is who may use it now, read and write as their roles allow, so that PDS keeps them in without asking this host. |
| `part` | `string` | Yes |  |
| `space` | `string` (space-ref) | No |  |
| `token` | `string` | Yes |  |

#### Output

**Encoding**: `*/*`

#### Errors

- **Forbidden**
- **NotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "On the source host, for the destination of a move migratePrepare started: a part of the group nothing public serves whole. `meta` is a space's meta archive (as com.atproto.space.exportSpaceMeta serves one), `repo` the group's own repo in a space (as com.atproto.space.getRepo does), `blobs` the list of its files and `blob` one of them. Authorized by migratePrepare's token, for an hour.",
      "errors": [
        {
          "name": "Forbidden"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "format": "cid",
            "type": "string"
          },
          "group": {
            "format": "did",
            "type": "string"
          },
          "leaving": {
            "description": "For a move to a plain PDS: a space's meta archive as a memberspace whose member list is who may use it now, read and write as their roles allow, so that PDS keeps them in without asking this host.",
            "type": "boolean"
          },
          "part": {
            "knownValues": [
              "meta",
              "repo",
              "blobs",
              "blob"
            ],
            "type": "string"
          },
          "space": {
            "format": "space-ref",
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "required": [
          "group",
          "token",
          "part"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.migrateExport",
  "lexicon": 1
}
```
