Database

Migrate All Databases

This operation migrates registered local databases. Remote databases are skipped and reported in an optional skipped list; migrate them on their owning AgentOS.

On partial failure, the runtime returns HTTP 207 with a failed mapping from database IDs to errors and, when applicable, skipped remote IDs. The generated response table below does not yet declare that status. Inspect the response body before treating a 2xx result as a completed upgrade. See Database Migrations for target selection and backup requirements.

POST/databases/all/migrate

Migrate all database schemas to the given target version. If a target version is not provided, all databases will be migrated to the latest version.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

target_version?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl --request POST 'https://example.com/databases/all/migrate'
{  "message": "All databases migrated successfully to version 3.0.0"}