POST
/databases/{uuid}/migrateMigrate to Server
Migrate a database to another destination/server owned by the authenticated team. Stops the database, optionally transfers persistent volume data when both servers are managed by Coolify, and updates database records. Redeploy after migration completes.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
uuidstringrequired
UUID of the database.
destination_uuidstringrequired
UUID of the target destination.
migrate_volumesbooleanoptional
Whether to transfer persistent volume data when migrating across servers.
200Database migration started or completed.
400Invalid token.
messagestringoptional
401Unauthenticated.
messagestringoptional
404Resource not found.
messagestringoptional
422Validation error.
errorsobjectoptional
messagestringoptional
Error handling
A 400 is returned: Invalid token. A 401 is returned: Unauthenticated. A 404 is returned: Resource not found. A 422 is returned: Validation error.