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

Procedure

procedure · POST

Input

application/vnd.ipld.car

Output

application/json

imported

requiredinteger

Number of records successfully imported.

Errors

InvalidCar

The CAR file is malformed, has missing blocks, or contains records with mismatched CIDs.

RepoAlreadyExists

The destination already has records for this DID. Import is only supported for empty repos.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.

  • Export the full repository as a CAR file. Returns all record blocks, MST nodes, and the signed commit.