Domain auto-renewal API
Enable domain auto-renewal
Enables auto renewal for the domain.
PUT /:account/registrar/domains/:domain/auto_renewal
Parameters
Name | Type | Description |
---|---|---|
:account |
integer |
The account id |
:domain |
string , integer
|
The domain name or id |
Example
Enable auto-renewal for the domain example.com
in the account 1010
:
curl -H 'Authorization: Bearer <token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-X PUT \
https://api.dnsimple.com/v2/1010/registrar/domains/example.com/auto_renewal
Response
Responds with HTTP 204 on success.
Errors
Responds with HTTP 400 if auto-renewal cannot be enabled.
Responds with HTTP 401 in case of case of authentication issues.
Disable domain auto-renewal
Disables auto renewal for the domain.
DELETE /:account/registrar/domains/:domain/auto_renewal
Parameters
Name | Type | Description |
---|---|---|
:account |
integer |
The account id |
:domain |
string , integer
|
The domain name or id |
Example
Disable auto-renewal for the domain example.com
in the account 1010
:
curl -H 'Authorization: Bearer <token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-X DELETE \
https://api.dnsimple.com/v2/1010/registrar/domains/example.com/auto_renewal
Response
Responds with HTTP 204 on success.
Errors
Responds with HTTP 400 if auto-renewal cannot be disabled.
Responds with HTTP 401 in case of case of authentication issues.