Accounts-accountNumber-web-domainName-ftp-FtpUsername:POST

From Hostway API Documentation
Jump to: navigation, search

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

Add ftp account.

Contents


Request

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

URI Parameters

accountNumber - string
The user account of the web site owner
domainName - string
The domain name of the website

Request Headers

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

Request Body

{
   "username": "{username}",
   "type": "{type}",
   "password": "{password}"
}
 

Parameters

username - string
A valid ftp username. Required.
type - string
Ftp account type: "www.account.ftp" or "www.account.subftp". Required.
password - string
A valid password. Required.


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 access this resource

Examples

Adding an ftp account

Request

POST /accounts/acct411359/web/ng-test-website1-20150305-0734.us/ftp

{"username": "testftp9", "type": "www.account.ftp", "password": "somePw97q"}
 

Response

202 Accepted

 



blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox