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 RAM allocated to it. Redis minimum is 512 and Mongo, 1024.

Response

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