cURL
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" }
Update auto-renewal configuration for a capacity policy.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Policy/Capacity ID (e.g., sc_830349911839)
Enables auto-renewal for the policy
Auto-renewal frequency (required when autoRenewalEnabled is true)
one-day
one-week
one-month
Success - Auto-renewal configuration updated