Edit database
Rename a database or change its memory with PATCH /v2/databases/:database_id, without restarting it or changing its credentials and connection URL.
PATCH
Edit database
The API key for your account. You can find this in your account settings.
databases:write scope.
Updates a database’s display name and/or its allocated memory without recreating the container or rotating its credentials, connection URL and port stay the same. At least one of 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
The name of the database. 1–32 characters: letters, numbers, underscores (
_), hyphens (-) and spaces, and must include at least one letter, number or underscore.The amount of RAM to allocate, in megabytes. Minimums: Redis 512 MB, MongoDB and PostgreSQL 1024 MB.
Response
Common errors
Related
- CLI:
squarecloud db update - SDKs:
api.databases.update()(JavaScript),client.databases.update()(Python),c.Databases.Update()(Go)

