cURL
curl --request POST \ --url http://localhost:4000/api/database/switch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "provider": "planetscale" }'
{ "success": true, "data": {} }
Switch between primary and secondary database connections
Dynamic authentication JWT token
planetscale
tidb
Provider switched successfully
true