Database
Edit Database
Edit a database hosted on Square Cloud, changing name and/or memory.
PATCH
Edit Database
string
required
The API key for your account. You can find this in your account settings.
name or ram must be present in the request body.
Changing ram is applied live against the database’s cluster; it fails if the new value is invalid for the plan or engine. This does not restart the database. To check whether a memory change is reflected, see Get Database Info or Get Database Status. Rate limited to 1 update every 5 seconds per user.
Parameters
string
required
The ID of the database.
string
The name of the database. 1–32 characters — letters, numbers, underscores (
_), hyphens (-) and spaces — and must include at least one letter, number or underscore.int
The amount of RAM to allocate, in megabytes. Minimums: Redis 512 MB, MongoDB and PostgreSQL 1024 MB.
Response
string
Indicates whether the call was successful..
success if successful, error if not.Common errors
Edit Database

