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

# 编辑实例

## 请求头

<ParamField header="Content-Type" type="string" required={true}>
  枚举值：application/json。
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：Bearer \{\{API 密钥}}。
</ParamField>

## 请求体

<ParamField body="instanceId" type="string" required={true}>
  要编辑的实例 ID。
</ParamField>

<ParamField body="ports" type="object[]" required={false}>
  实例对外开放的端口。ports + tools 最多使用 15 个端口。

  <Expandable title="properties" defaultOpen={false}>
    <ParamField body="port" type="integer" required={false}>
      端口号。支持的端口号范围：1-65535，其中 2222, 2223, 2224 为内部端口，不可使用。
    </ParamField>

    <ParamField body="type" type="string" required={false}>
      协议类型。支持 `tcp`、`http`。
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="expandRootDisk" type="integer" required={false}>
  系统存储扩容大小，单位 GB。整数，取值范围 >= 0，不扩容填 0 即可。
</ParamField>
