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": "72cf0f86-f4a8-459a-9dfe-3111793e3050",
"ContextEmailId": "e7e14f3f-5253-4bd0-a5c7-7d4af05dac58"
}
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>e7e14f3f-5253-4bd0-a5c7-7d4af05dac58</ContextEmailId> <EmailAuditTrailItemType>Sent</EmailAuditTrailItemType> <EmailId>72cf0f86-f4a8-459a-9dfe-3111793e3050</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. |