Skip to main content
PATCH
/
v2
/
databases
/
{database_id}
Edit Database
curl --request PATCH \
  --url https://api.squarecloud.app/v2/databases/{database_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "ram": 123
}
'
{
  "status":"success"
}
Authorization
string
required
The API key for your account. You can find this in your account settings.

Parameters

database_id
string
required
The ID of the database.
name
string
The name of the database. Must be [a-z] [A-Z] [0-9].
ram
int
The amount of RAM to allocate, in megabytes. Minimums: Redis 512 MB, MongoDB and PostgreSQL 1024 MB.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
{
  "status":"success"
}