Accounts-accountId-users-userName:DELETE

From Hostway API Documentation
Revision as of 12:02, 13 November 2013 by Petre.popescu (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DELETE /accounts/{accountId}/users/{userName}

Delete a user

Contents


Request

DELETE /accounts/{accountId}/users/{userName}

Request Parameters

accountId - string
The Id of the account
userName - string
The username of the user to delete

URI Parameters

None

Request Headers

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

Response

Status Code

204 No Content
User was successfully deleted
401 Unauthorized
Authentication failed
403 Forbidden
Authentication succeeded, but the authenticated user is not allowed to delete this user resource. The only authenticated users allowed to delete this user resource are the account owner(s) of this account, and sales/support agents. Account owners cannot delete themselves. An account owner is a user within the account that has the role "sitecontrol_account_owner".
404 Not found
Either the account or the requested user does not exist.

Response Headers

None

Response Body

None

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox