BSV blockchainBSV blockchain

Run database migrations.

POST/migrate

Applies pending schema migrations. Returns the migrated storage name string on success. Called once during makeAvailable().

Body application/json

storageNamestringrequired
storageIdentityKeystringrequired

Response

Migration completed; returns the storage name.

storageNamestring

Authentication required or token invalid.

errorstring
codestring

Machine-readable error code (see specs/errors.md).

Internal storage error.

errorstring
codestring

Machine-readable error code (see specs/errors.md).

Request
curl -X POST "https://{host}/storage/v1/migrate" \
  -H "Content-Type: application/json" \
  -d '{
  "storageName": "string",
  "storageIdentityKey": "string"
}'
Response
{
  "storageName": "string"
}