Accounts-accountNumber-web-domainName-php:POST

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Examples)
 
m (1 revision: Release 109)
 

Latest revision as of 12:16, 24 July 2015

[edit] POST /accounts/{accountNumber}/web/{domainName}/php

Adds PHP feature to a domain.

Contents


[edit] Request

POST /accounts/{accountNumber}/web/{domainName}/php

[edit] URI Parameters

accountNumber - string
The user account to which the domain name and the subdomain belong
domainName - string
The target domain name (domain name under which the site is actually hosted)

[edit] Request Headers

Authorization - HTTP Authorization header [1]
The Authentication credentials of the client application.

[edit] Request Body

{}
 

[edit] Response

[edit] Status Code

202 Accepted
Success
400 Bad Request
The format of the request body is invalid or the subdomain does not meet the requirements.
401 Unauthorized
The supplied credentials are invalid or do not provide permissions for this operation.
404 Not Found
The domain name does not exist.
409 Conflict
The sub domain already exists(on create) or domain is disabled(on update).

[edit] Examples

[edit] Try to add PHP feature to an unexisting domain

Request

POST accounts/{account}/email/test.com/php
 

Response

404 Not Found

{"itemNotFound": {"guid": "", "message": "Resource not found", "code": 404, "details": ""}}

 

[edit] Successfully adding PHP feature

Request

POST accounts/{account}/email/test.com/php
 

Response

202 Accepted

 

[edit]

blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox