Skip to main content
Use this endpoint to modify the configuration of an existing database. You can update the database’s display name, increase or decrease its RAM allocation, or both at once. All body fields are optional — include only the properties you want to change.

Request

PATCH https://api.virtuscloud.app/v2/databases/{databaseId}

Headers

Authorization
string
required
Your Virtus Cloud API key. Pass it directly as the header value — no prefix required.Example: Authorization: vc_live_xxxxxxxxxxxx

Path Parameters

databaseId
string
required
The unique identifier of the database you want to edit.

Body

name
string
A new display name for the database. Must consist of alphanumeric characters only (a–z, A–Z, 0–9).
ram
integer
The new RAM allocation in megabytes. The minimum is 512 MB for Redis and 1024 MB for MongoDB. Increasing RAM takes effect after a brief restart; downgrading RAM is subject to plan limits.
At least one of name or ram must be provided. Sending an empty body returns an error.

Response

status
string
Returns "success" when the update is applied successfully.

Examples

curl -X PATCH https://api.virtuscloud.app/v2/databases/a14b8d5e1cb7405a851eb4c075506121 \
  -H "Authorization: <api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "production-db",
    "ram": 2048
  }'

Response Example

{
  "status": "success"
}