Accounts-accountNumber-web-domainName-aliases-AliasDomainName:DELETE
From Hostway API Documentation
(Difference between revisions)
Mike.robski (Talk | contribs) m (1 revision: Release 100) |
Latest revision as of 23:11, 18 November 2014
DELETE /accounts/{accountNumber}/web/{domainName}/aliases/{aliasDomainName}
Deletes domain name alias.
Contents |
Request
DELETE /accounts/{accountNumber}/web/{domainName}/aliases/{aliasDomainName}
URI Parameters
- accountNumber - string
- The user account owning the domain name and the domain name alias
- domainName - string
- The target domain name (domain name where the site is actually hosted)
- aliasDomainName - string
- The domain name that will act as an alias to the target domain.
Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
- Content-Type
- Required. Set this header to
application/json; charset=UTF-8
Response
Status Code
- 202 Accepted
- Success
- 401 Unauthorized
- The supplied credentials are invalid or do not provide permissions for this operation.
- 403 Forbidden
- The authenticated user is not allowed to delete this alias.
- 404 Not Found
- The domain name or the domain name alias do not exist for the account.
Examples
Success deleting domain name alias
Request
DELETE /accounts/test-account/web/test.com/aliases/test-alias.com
Response
202 Accepted