PUT /projects/{project_id}/domains/{domain}/auto-renew
Turn automatic renewal on or off
Administrator SESSION route (console). Served only when the service is open to the account (404 not_found otherwise). Non-administrator member: 403. Turning it on applies the displayed price (renewal quote).
Console session only (signed-in console).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | path | string · required | project identifier |
domain | path | string · required | domain name |
Request body
application/json
| Field | Type | Description |
|---|---|---|
enabled | boolean · required | |
quote_id | string |
Responses
| Status | Description | Body |
|---|---|---|
200 | Setting saved | object |
409 | Quote expired | Error |
401 | Key missing or invalid | Error |
Examples
curl
curl -X PUT "$GALON_API_BASE/projects/<project_id>/domains/<domain>/auto-renew" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled": true}'