Update database
const url = 'https://api.reflexdb.cloud/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","mysqlDb":"example","instanceSize":"nano","logLevel":"info","binlogServerId":1,"buildComputeOverride":"BUILD_GENERAL1_LARGE","reflexdbCustomDomain":"example","pauseSchedule":{"pauseAt":"example","resumeAt":"example","days":[1]},"tags":[{"label":"example","color":"gray"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.reflexdb.cloud/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "mysqlDb": "example", "instanceSize": "nano", "logLevel": "info", "binlogServerId": 1, "buildComputeOverride": "BUILD_GENERAL1_LARGE", "reflexdbCustomDomain": "example", "pauseSchedule": { "pauseAt": "example", "resumeAt": "example", "days": [ 1 ] }, "tags": [ { "label": "example", "color": "gray" } ] }'Partially updates database settings. Connection parameters (host, port, db, user, password) may only be changed when the instance is not provisioned (status: registered, failed, or stopped).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Database ID
Request Body required
Section titled “Request Body required ”Partial database instance update. Edit connection parameters via PATCH /connections/:id.
object
Switch to a different schema from the connection’s availableSchemas
Force a specific CodeBuild compute tier; null clears the override (auto-select resumes)
Vanity subdomain slug (Teams+ plan). Must match /^a-z0-9?$/ and be globally unique. null clears the custom domain.
Recurring pause/resume schedule (UTC). null clears the schedule.
object
HH:MM UTC
HH:MM UTC
0=Sun…6=Sat; empty = every day
A label attached to a database for organisation
object
Responses
Section titled “ Responses ”A database instance config and its current lifecycle status
A database instance config and its current lifecycle status
object
The connection that provides source MySQL credentials
The MySQL schema on the source server for this instance
Sync mode for this instance
Polling interval in seconds (>= connection minSyncInterval)
ECS task vCPU units (256 = 0.25 vCPU)
ECS task memory in MiB
HTTPS base URL of the running instance
Forced CodeBuild compute tier for this instance’s builds; null = auto-select
AWS region this instance is deployed to
Queued goal — reconciler drives the instance toward this state
Vanity subdomain (Teams+ plan). When set, <value>.reflexdb.cloud resolves to this instance.
Recurring pause/resume schedule (UTC). null when no schedule is configured.
object
HH:MM UTC
HH:MM UTC
0=Sun…6=Sat; empty = every day
A label attached to a database for organisation
object
Example
{ "syncMode": "poll", "logLevel": "info", "status": "registered", "healthStatus": "ok", "instanceSize": "nano", "tags": [ { "color": "gray" } ]}Default Response
object
Example generated
{ "error": "example", "message": "example"}Default Response
object
Example generated
{ "error": "example", "message": "example"}Default Response
object
Example generated
{ "error": "example", "message": "example"}