Migration

The migration endpoint allows to manage the migrations of the Query Server.

POST

The migration endpoint allows to execute a migration in the primary database.

POST /_/migration

Headers

NameTypeDescriptionRequired
AuthorizationstringThe bearer token to connect to the server.true

Body

NameTypeDescriptionRequired
db_namestringThe database to use.true
querystringThe query to execute.true

Example:

{
  "db_name": "example.sql",
  "query": "CREATE TABLE example (id INTEGER PRIMARY KEY, name TEXT NOT NULL)"
}