Domains-domainName-authInfo:PUT

From Hostway API Documentation
Jump to: navigation, search

PUT /domains/{domainName}/authInfo

Set the authorization code (auth info) of a domain.

Contents

Request

PUT /domains/{domainName}/authInfo

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

Content-Type: application/json

Request Body

The auth info string. If the body is empty and Content-Length is 0, a new random auth info string will be generated.

Response

Status Code

200 OK
Returned on success
400 Bad Request
The domain name or auth info string 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

The new auth info string.

Example of setting the domain auth info.

Request

Content-Length: 0
PUT /domains/example.com/authInfo
 

Response

200 OK
"dfouHzxaV=3ytRem"
 

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox