Accounts-accountNumber-web-domainName-ssh-SshUsername:PUT
From Hostway API Documentation
(Difference between revisions)
(Created page with "= PUT /accounts/{accountNumber}/web/{domainName}/ssh = Update ssh account (change password). __TOC__ == Request == <code>PUT /accounts/{accountNumber}/web/{domainName}/ssh/{...") |
Mike.robski (Talk | contribs) m (1 revision: Release 109) |
Latest revision as of 13:16, 24 July 2015
[edit] PUT /accounts/{accountNumber}/web/{domainName}/ssh
Update ssh account (change password).
Contents |
[edit] Request
PUT /accounts/{accountNumber}/web/{domainName}/ssh/{username}
[edit] URI Parameters
- accountNumber - string
- The user account of the web site owner
- domainName - string
- The domain name of the website
- username - string
- The username of the ssh account
[edit] Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
[edit] Request Body
{ "password": "{password}" }
[edit] Parameters
- password - string
- The new password. Required.
[edit] Response
[edit] Status Code
- 204 No Content
- 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
[edit] Examples
[edit] Changing the password of an ssh account
Request
PUT /accounts/acct411359/web/ng-test-website1-20150305-0734.us/ssh/testssh053247 { "password": "someNewPw100" }
Response
204 No Content