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
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": {}
}
Dynamic authentication JWT token
Provider switched successfully
The response is of type object
.