Skip to main content
POST
https://api.novita.ai
/
gpu-instance
/
openapi
/
v1
/
gpu
/
instance
/
setAutoRenew
Set Auto Renew
curl --request POST \
  --url https://api.novita.ai/gpu-instance/openapi/v1/gpu/instance/setAutoRenew \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "instanceIds": [
    "<string>"
  ],
  "autoRenew": true,
  "autoRenewMonth": 123
}
'

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

instanceIds
string[]
required
Instance ID list.
autoRenew
boolean
required
Whether to enable automatic renewal.
autoRenewMonth
integer
required
Automatic renewal period, in months.