> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# 编辑数据库

> 编辑托管在 Square Cloud 上的数据库，更改名称和/或内存。

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  你账户的 API 密钥。你可以在[账户设置](https://squarecloud.app/zh/account/security)中找到它。
</ParamField>

### 参数

<ParamField path="database_id" type="string" placeholder="Database ID" required>
  数据库的 ID。
</ParamField>

<ParamField body="name" type="string" placeholder="database name">
  数据库的名称。1–32 个字符 — 字母、数字、下划线（`_`）、连字符（`-`）和空格 — 且必须至少包含一个字母、数字或下划线。
</ParamField>

<ParamField body="ram" type="int" placeholder="RAM(in MB)">
  要分配的 RAM 数量，单位为兆字节（MB）。最小值：Redis 512 MB，MongoDB 和 PostgreSQL 1024 MB。
</ParamField>

### 响应

<ResponseField name="status" type="string">
  指示调用是否成功。成功时为 `success`，否则为 `error`。
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "status":"success"
  }
  ```
</ResponseExample>
