Accounts-account-email-domain-webmail:PUT

From Hostway API Documentation
Revision as of 08:46, 20 May 2013 by Mike.robski (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PUT /accounts/{account}/email/{domain}/webmail

Change the OpenXchange allowUpgrade option.

Contents


Request

PUT /accounts/{account}/email/{domain}/webmail

URI Parameters

account - string
domain - string

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


Request Body

{
    "allowUpgrade": {allowUpgrade}
}
 


Parameters

allowUpgrade - boolean
OpenXchange allowUpgrade option value.

Response

Status Code

204 No Content
400 Bad Request
The format of the request body is invalid or the username 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.

Examples

Failure updating the domain settings without any options

Request

PUT /accounts/test/email/test.com/webmail

{}
 

Response

400 Bad Request

{"allowUpgrade": "Required"}
 

Success updating the allowUpgrade value

Request

PUT /accounts/test/email/test.com/webmail

{"allowUpgrade": true}
 

Response

204 No Content


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox