Domains-domainName-autoRenew:PUT
From Hostway API Documentation
PUT /domains/{domainName}/autoRenew
Set the autoRenew status of a domain.
Contents |
Request
PUT /domains/{domainName}/autoRenew
Parameters
None.
URI Parameters
- domainName - string
- The domain name. IE: example.com is a valid domain name, whereas http://www.example.com or www.example.com are not. If the domain name is invalid, or is otherwise not registerable such as for a non-existent or non-supported TLD, an error will be returned. Domain names are case insensitive. The domain name must be an open or suspended product under the authenticated franchise.
Request Headers
None.
Request Body
The autoRenew status value (true or false)
Response
Status Code
- 204 No content
- Returned on success
- 400 Bad Request
- The domain name is not valid.
- 403 Forbidden
- Domain is not registered in this account and cannot be accessed.
- 404 Not Found
- No domain records found for the given domain name.
Response Body
None.
Example of setting the domain autoRenew status.
Request
PUT /domains/example.com/autoRenew true
Response
204 No content
See also