v1
latestOpenAPI 3.0.02026-07-14169146300.3 KBDatabase
Apply a database migration
Only available to selected partner OAuth apps
post/v1/projects/{ref}/database/migrations
Path parameters
refstring required
Example:abcdefghijklmnopqrst
Project ref
Headers
Idempotency-Keystring
A unique key to ensure the same migration is tracked only once.
Request body
Example request
{
"query": "create table public.widgets(id bigint primary key);",
"name": "create_widgets_table",
"rollback": "drop table if exists public.widgets;"
}