POST api/EmailEventGateway

Request Information

URI Parameters

None.

Body Parameters

Collection of EmailEvent
NameDescriptionTypeAdditional information
ip

string

None.

sg_event_id

string

None.

sg_message_id

string

None.

CreditApplicationId

string

None.

ActivityId

string

None.

CustomerId

string

None.

useragent

string

None.

event

string

None.

email

string

None.

marketing_campaign_name

string

None.

url_offset

Url_Offset

None.

timestamp

integer

None.

url

string

None.

category

Collection of string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ip": "sample string 1",
    "sg_event_id": "sample string 2",
    "sg_message_id": "sample string 3",
    "CreditApplicationId": "sample string 4",
    "ActivityId": "sample string 5",
    "CustomerId": "sample string 6",
    "useragent": "sample string 7",
    "event": "sample string 8",
    "email": "sample string 9",
    "marketing_campaign_name": "sample string 10",
    "url_offset": {
      "index": 1,
      "type": "sample string 2"
    },
    "timestamp": 11,
    "url": "sample string 12",
    "category": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "ip": "sample string 1",
    "sg_event_id": "sample string 2",
    "sg_message_id": "sample string 3",
    "CreditApplicationId": "sample string 4",
    "ActivityId": "sample string 5",
    "CustomerId": "sample string 6",
    "useragent": "sample string 7",
    "event": "sample string 8",
    "email": "sample string 9",
    "marketing_campaign_name": "sample string 10",
    "url_offset": {
      "index": 1,
      "type": "sample string 2"
    },
    "timestamp": 11,
    "url": "sample string 12",
    "category": [
      "sample string 1",
      "sample string 2"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfEmailEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FfWebApi.Controllers">
  <EmailEvent>
    <ActivityId>sample string 5</ActivityId>
    <CreditApplicationId>sample string 4</CreditApplicationId>
    <CustomerId>sample string 6</CustomerId>
    <_event>sample string 8</_event>
    <category xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </category>
    <email>sample string 9</email>
    <ip>sample string 1</ip>
    <marketing_campaign_name>sample string 10</marketing_campaign_name>
    <sg_event_id>sample string 2</sg_event_id>
    <sg_message_id>sample string 3</sg_message_id>
    <timestamp>11</timestamp>
    <url>sample string 12</url>
    <url_offset>
      <index>1</index>
      <type>sample string 2</type>
    </url_offset>
    <useragent>sample string 7</useragent>
  </EmailEvent>
  <EmailEvent>
    <ActivityId>sample string 5</ActivityId>
    <CreditApplicationId>sample string 4</CreditApplicationId>
    <CustomerId>sample string 6</CustomerId>
    <_event>sample string 8</_event>
    <category xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </category>
    <email>sample string 9</email>
    <ip>sample string 1</ip>
    <marketing_campaign_name>sample string 10</marketing_campaign_name>
    <sg_event_id>sample string 2</sg_event_id>
    <sg_message_id>sample string 3</sg_message_id>
    <timestamp>11</timestamp>
    <url>sample string 12</url>
    <url_offset>
      <index>1</index>
      <type>sample string 2</type>
    </url_offset>
    <useragent>sample string 7</useragent>
  </EmailEvent>
</ArrayOfEmailEvent>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmailEvent[]'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.