跳转到主要内容
PUT
/
gpus
/
v2
/
instances
/
{instance_id}
/
auto-renew
设置实例自动续费
curl --request PUT \
  --url https://api.ppio.com/gpus/v2/instances/{instance_id}/auto-renew \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "auto_renew": {
    "enabled": true,
    "months": 1
  }
}
'
{}

请求头

Content-Type
string
必填

枚举值:application/json。

Authorization
string
必填

Bearer 身份验证格式,例如:Bearer {{API 密钥}}

路径参数

instance_id
string
必填

实例 ID。字符串,长度限制:1-255 字符。

请求体

application/json
auto_renew
object
必填

自动续费配置。

响应

200 - application/json

成功

The response is of type object.

最后修改于 2026年6月26日