POST api/v1/mt/detail/add

Request Information

URI Parameters

None.

Body Parameters

MarketingTaskEntity
NameDescriptionTypeAdditional information
accessToken

string

None.

task_name

string

None.

header

MarketingTaskHeaderEntity

None.

detail

MarketingTaskDetailEntity

None.

addressList

Collection of AddressListDetailEntity

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'task_type_name' on 'Model.MarketingTask.MarketingTaskHeaderEntity'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'task_type_name' on 'Model.MarketingTask.MarketingTaskHeaderEntity'.

application/xml, text/xml

Sample:
<MarketingTaskEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.MarketingTask">
  <accessToken>sample string 1</accessToken>
  <addressList xmlns:d2p1="http://schemas.datacontract.org/2004/07/Model.Address">
    <d2p1:AddressListDetailEntity>
      <d2p1:otherVars xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:otherVars>
      <d2p1:rec_address>sample string 1</d2p1:rec_address>
      <d2p1:rec_name>sample string 2</d2p1:rec_name>
      <d2p1:rec_newAddress>sample string 4</d2p1:rec_newAddress>
      <d2p1:rec_newName>sample string 5</d2p1:rec_newName>
      <d2p1:rec_newPhone>sample string 6</d2p1:rec_newPhone>
      <d2p1:rec_phone>sample string 3</d2p1:rec_phone>
    </d2p1:AddressListDetailEntity>
    <d2p1:AddressListDetailEntity>
      <d2p1:otherVars xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:otherVars>
      <d2p1:rec_address>sample string 1</d2p1:rec_address>
      <d2p1:rec_name>sample string 2</d2p1:rec_name>
      <d2p1:rec_newAddress>sample string 4</d2p1:rec_newAddress>
      <d2p1:rec_newName>sample string 5</d2p1:rec_newName>
      <d2p1:rec_newPhone>sample string 6</d2p1:rec_newPhone>
      <d2p1:rec_phone>sample string 3</d2p1:rec_phone>
    </d2p1:AddressListDetailEntity>
  </addressList>
  <detail i:nil="true" />
  <header>
    <createctid xmlns="http://schemas.datacontract.org/2004/07/Model">21</createctid>
    <createdate xmlns="http://schemas.datacontract.org/2004/07/Model">2024-10-06T01:45:13.2079965+08:00</createdate>
    <modifyctid xmlns="http://schemas.datacontract.org/2004/07/Model">23</modifyctid>
    <modifydate xmlns="http://schemas.datacontract.org/2004/07/Model">2024-10-06T01:45:13.2079965+08:00</modifydate>
    <_localizer />
    <api_key>sample string 10</api_key>
    <api_user>sample string 9</api_user>
    <cid>3</cid>
    <click_count>13</click_count>
    <ctid>4</ctid>
    <cycle_end_time>2024-10-06T01:45:13.2079965+08:00</cycle_end_time>
    <description>sample string 18</description>
    <draft_guidkey>sample string 19</draft_guidkey>
    <guidkey>sample string 2</guidkey>
    <id>1</id>
    <invalid_count>15</invalid_count>
    <job_key>sample string 17</job_key>
    <label_id>sample string 8</label_id>
    <read_count>12</read_count>
    <request_count>11</request_count>
    <send_time>sample string 20</send_time>
    <status>sample string 7</status>
    <success_count>14</success_count>
    <task_name>sample string 6</task_name>
    <task_type>sample string 5</task_type>
    <thumbnail>sample string 16</thumbnail>
  </header>
  <task_name>sample string 2</task_name>
</MarketingTaskEntity>

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 'MarketingTaskEntity'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.