POST Exchange Mailing List
From Hostway API Documentation
(Difference between revisions)
(→Request Body) |
Mike.robski (Talk | contribs) m (1 revision: Release 95) |
Latest revision as of 23:59, 1 July 2014
Create an Exchange mailing list
POST /accounts/{account_number}/exchange/{domain_name}/mailingLists
Contents |
Parameters
- account_number - string
- The account number that the Exchange resource belongs to
- domain_name - string
- The domain name that is associated with the Exchange resource
Request Body
{ "name": "list_name", "owner": "john2", "description": "some text" }
- name - string
- The username of the new Exchange mailing list
- onwer - string
- the owner of the mailing list. The owner should be an existent Exchange mailbox username for the particular domain.
- description - string
- any text in order to describe the mailing list
Response Codes
- 202
- Accepted
- 404
- Non-existent resource
- 405
- Unsupported method
- 409
- Duplicate entry
- 502
- Internal server error
Examples
POST {server_name}/accounts/{account_number}/exchange/{domain_name}/mailingLists
- Request Headers:
Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded username & password string
- Request Body:
{ "name": "list_name", "name": "john2", "description": "some text" }
- Response: Accepted (202):
202
- Request Body with Invalid data:
{ "description": "some text" }
- Response: BadRequest (400):
{ "badRequest": {"message": "POST data error", "code": 400, "details": { "owner: "Required", "name": "Required" } }