PATCH
/
v2
/
databases
/
{databaseId}
Edit Database
curl --request PATCH \
  --url https://api.squarecloud.app/v2/databases/{databaseId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "ram": 123
}'
{
  "status":"success"
}

Request

Headers

Authorization
string
required
The API key for your account. You can find this in your account settings.

Path

databaseId
string
required
The ID of the database.

Body

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"
}