POST api/{version}/Event
Posts an email audit trail event that was raised by a client app. Returns without waiting on result.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| version | string |
None. |
Body Parameters
EmailAuditTrailItemModel| Name | Description | Type | Additional information |
|---|---|---|---|
| EmailAuditTrailItemType |
Type of email audit trail event to record. Refer to the documentation for the object itself to see available event types. |
EmailAuditTrailItemType |
Required |
| EmailId |
Email Id that the event concerns. |
globally unique identifier |
Required |
| ContextEmailId |
The email Id of another email if the event involves an email that can be linked to the primary email (e.g. reply, reply-all, forward). |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"EmailAuditTrailItemType": 1,
"EmailId": "5994bcea-093b-4bef-9021-04df6b5b99c6",
"ContextEmailId": "4269a15b-d7fe-4ad9-9606-aca7d939eda0"
}
application/xml, text/xml
Sample:
<EmailAuditTrailItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models"> <ContextEmailId>4269a15b-d7fe-4ad9-9606-aca7d939eda0</ContextEmailId> <EmailAuditTrailItemType>Sent</EmailAuditTrailItemType> <EmailId>5994bcea-093b-4bef-9021-04df6b5b99c6</EmailId> </EmailAuditTrailItemModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |