Skip to main content
PUT
/
external
/
api
/
v1
/
flexcompute
/
capacity
/
auto-renewal
Renew Capacity
curl --request PUT \
  --url https://public-api.cloudidr.com/external/api/v1/flexcompute/capacity/auto-renewal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cidrId": "sc_238017929606",
  "autoRenewalEnabled": true,
  "frequency": "one-week"
}
'
{
  "message": "Successfully update auto renewal information for policy sc_238017929606"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cidrId
string
required

Policy/Capacity ID (e.g., sc_830349911839)

autoRenewalEnabled
boolean
default:false

Enables auto-renewal for the policy

frequency
enum<string>

Auto-renewal frequency (required when autoRenewalEnabled is true)

Available options:
one-day,
one-week,
one-month

Response

Success - Auto-renewal configuration updated