Accounts-accountNumber-web-domainName-subdomains-subDomain:DELETE
From Hostway API Documentation
(Difference between revisions)
(→Success deleting subdomain) |
Mike.robski (Talk | contribs) m (1 revision: Release 109) |
Latest revision as of 12:16, 24 July 2015
[edit] DELETE /accounts/{accountNumber}/web/{domainName}/subdomains/{subDomain}
Deletes subdomain.
Contents |
[edit] Request
DELETE /accounts/{accountNumber}/web/{domainName}/subdomains/{subDomain}
[edit] URI Parameters
- accountNumber - string
- The user account owning the domain name and the subdomain
- domainName - string
- The target domain name (domain name where the site is actually hosted)
- subDomain - string
- The subdmain.
[edit] 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
[edit] Response
[edit] 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 subdomain.
- 404 Not Found
- The domain name or the subdomain do not exist for the account.
[edit] Examples
[edit] Success deleting subdomain
Request
DELETE /accounts/test-account/web/test.com/subdomains/sub.test.com
Response
202 Accepted