Mailboxes
Method |
Path |
Return Model |
Summary |
---|---|---|---|
GET |
List all mailboxes. |
||
GET |
Retrieve the current state of a mailbox. |
||
PUT |
void |
Change the state of a mailbox. (Note - implicitly creates the mailbox). |
|
DELETE |
void |
Destroy a mailbox. |
GET /mailboxes
List all mailboxes.
GET /mailboxes/{mailboxName}
Retrieve the current state of a mailbox.
Path parameters
- mailboxName: string - Name of the mailbox
Error Responses
- 404 - Mailbox not found
PUT /mailboxes/{mailboxName}
Change the state of a mailbox. (Note - implicitly creates the mailbox).
Path parameters
- mailboxName: string - Name of the mailbox
Query parameters
- oldMessages: int - (required) Count of old messages in the mailbox
- newMessages: int - (required) Count of new messages in the mailbox
Error Responses
- 404 - Mailbox not found
DELETE /mailboxes/{mailboxName}
Destroy a mailbox.
Path parameters
- mailboxName: string - Name of the mailbox
Error Responses
- 404 - Mailbox not found