Domains-domainName-authInfo:PUT
From Hostway API Documentation
				
								
				(Difference between revisions)
				
																
				
				
								
				 (Created page with "= PUT /domains/''{domainName}''/authInfo = Set the authorization code (auth info) of a domain.  __TOC__ == Request == <code>PUT /domains/''{domainName}''/authInfo</code>  ====...")  | 
		Mike.robski  (Talk | contribs)  m (1 revision: Release 87)  | 
		
Latest revision as of 15:22, 15 November 2013
[edit] PUT /domains/{domainName}/authInfo
Set the authorization code (auth info) of a domain.
Contents | 
[edit] Request
PUT /domains/{domainName}/authInfo
[edit] Parameters
None.
[edit] 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.
 
[edit] Request Headers
Content-Type: application/json
[edit] 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.
[edit] Response
[edit] 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.
 
[edit] Response Body
The new auth info string.
[edit] Example of setting the domain auth info.
Request
Content-Length: 0 PUT /domains/example.com/authInfo
Response
200 OK "dfouHzxaV=3ytRem"
[edit] See also