# fyi.opensocial.migrateExport

> On the source host, for the destination of a move migratePrepare started: a part of the group nothing public serves whole. `meta` is what this host keeps of a space as its authority (whether anyone may read it, who writes there, and who may beyond its access record), as JSON, `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.

- Kind: query
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.migrateExport)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.migrateExport/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.migrateExport/analytics)

## Query (`fyi.opensocial.migrateExport`)

Type: query · GET

### Parameters (query string)

- `cid` (string · cid)
- `group` (string · did, required)
- `part` (string, required)
  - Constraints: knownValues: meta | repo | blobs | blob
- `space` (string · space-ref)
- `token` (string, required)

### Output (*/*)


### Errors

- `InvalidToken`: The token is not migratePrepare's for this group, or its hour is over.
- `BlobNotFound`: The group has no file by that CID.

## 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 what this host keeps of a space as its authority (whether anyone may read it, who writes there, and who may beyond its access record), as JSON, `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": [
        {
          "description": "The token is not migratePrepare's for this group, or its hour is over.",
          "name": "InvalidToken"
        },
        {
          "description": "The group has no file by that CID.",
          "name": "BlobNotFound"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "format": "cid",
            "type": "string"
          },
          "group": {
            "format": "did",
            "type": "string"
          },
          "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
}
```
