DigitalOcean-public.v2-new_Databases

Promote a Read-only Replica to become a Primary Cluster

To promote a specific read-only replica, send a PUT request to /v2/databases/$DATABASE_ID/replicas/$REPLICA_NAME/promote.

Note: Read-only replicas are not supported for Caching or Valkey clusters.

A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed.

put/v2/databases/{database_cluster_uuid}/replicas/{replica_name}/promote

Path parameters

database_cluster_uuidstring uuid required

A unique identifier for a database cluster.

replica_namestring required

The name of the database replica.

Response

The action was successful and the response body is empty.

Changes

Changed in 4 of the 8 revisions of this API.14