zone.stratos.repo.importRepo

Import a repository from a CAR file. Verifies record CID integrity and re-signs with the destination service key. The caller must be enrolled as the DID in the CAR's commit block.

Details · procedure
Kindprocedure
Authorityrepo.stratos.zone
Indexed
cid bafyreiat4bawamo75jsazkb4jkjwl65q3sspuzvgpobmezx5iyompglpou

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Import a repository from a CAR file. Verifies record CID integrity and re-signs with the destination service key. The caller must be enrolled as the DID in the CAR's commit block.",
      "errors": [
        {
          "description": "The CAR file is malformed, has missing blocks, or contains records with mismatched CIDs.",
          "name": "InvalidCar"
        },
        {
          "description": "The destination already has records for this DID. Import is only supported for empty repos.",
          "name": "RepoAlreadyExists"
        }
      ],
      "input": {
        "encoding": "application/vnd.ipld.car"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "imported": {
              "description": "Number of records successfully imported.",
              "type": "integer"
            }
          },
          "required": [
            "imported"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "zone.stratos.repo.importRepo",
  "lexicon": 1
}