Set opt-in automatic renewal
Updates automatic renewal using the original purchaser's credit. Saving settings does not renew the VPS immediately.
Access: Original purchaser with vm:write. Sessions require developer access or higher.
- Choose a term, currency and spending limit. Only that currency's balance can be charged.
- Attempts start 48 hours before expiry and may retry hourly within the eight-day grace period. Insufficient credit charges nothing.
- Disabling consent cancels an automatic renewal that has not been submitted. An uncertain submitted renewal stays reserved for review.
- The purchaser must remain eligible and have workspace write access. Imported servers without a purchasing user cannot opt in.
AuthorizationBearer <token>Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.
id*stringThe resource id.
X-Org-ID?stringSessions only: act on this organization (you must be a member). Default: your first organization.
application/json- body
currency?stringSelected personal credit balance. Never converts or combines balances.
"USD""IDR"auto_renew*booleanterm_months*integer1312maximum_amount*stringSaved consent settings
application/json- response
currency?string"USD""IDR"price_currency?string"USD""IDR"auto_renew*booleancan_manage*booleanrenewals_enabled*booleanterm_months*integer1312maximum_amount*stringrenew_at*|date-timerenewal_deadline*|Recorded expiry plus eight days for a Layerbeat-purchased server. No new renewal reserves credit at or after this time. Null for imports without an original purchaser.
date-timedeletion_at*|Earliest removal from Layerbeat, only when the local subscription closure gate and renewals are enabled. Pending or uncertain renewals block closure. This does not authorize physical infrastructure deletion or confirm data erasure.
date-timeactive_operation_id*string|nulloptions*array<>curl -X PUT 'https://layerbeat.com/v1/vms/string/renewal' \ -H 'Content-Type: application/json' \ -d '{ "auto_renew": true, "term_months": 1, "maximum_amount": "12.00"}'{ "auto_renew": false, "can_manage": true, "renewals_enabled": false, "term_months": 1, "maximum_amount": "12.00", "renew_at": "2026-10-29T10:00:00Z", "renewal_deadline": "2026-11-08T10:00:00Z", "deletion_at": null, "active_operation_id": null, "options": [ { "term_months": 1, "amount": "12.00" } ]}