For more information on using API

PUT http://webapi.mymarketing.co.il/api/whatsappcampaign/Campaign/{id}

Update WhatsApp campaign

Request Information

URI Parameters

Name

Description

Type

Additional information

id

WhatsApp campaign id

string

Required

Body Parameters

ApiWhatsAppCampaignUpdateCampaignContainer

Name

Description

Type

Additional information

campaign

is_sent

boolean
scheduled_date

date

Request Formats

application/json, text/json

Sample:
{
  "campaign": {
    "id": "b008adcf-c390-49f5-a0f4-243072b6b7dc",
    "parentuserid": 2,
    "fromname": "sample string 3",
    "fromnumber": "sample string 4",
    "name": "sample string 5",
    "content": "sample string 6",
    "isdeleted": true,
    "totalsent": 8,
    "totalsucceeded": 9,
    "totalopens": 10,
    "totalfailed": 11,
    "canunsubscribe": true,
    "totalunsubscribed": 13,
    "unsubscribetext": "sample string 14",
    "totalcredits": 15,
    "wizardmaxstep": 64,
    "wizardcurrentstep": 64,
    "statustype": 0,
    "sendingprofileid": 16,
    "totalclicks": 17,
    "totaluniqueclicks": 18,
    "islinktracking": true,
    "sendtype": 1,
    "groupids": [
      1,
      2
    ],
    "mobilenumbers": {
      "sample string 1": 2,
      "sample string 3": 4
    },
    "restricatedgroupids": [
      1,
      2
    ],
    "restricatedcampaignids": [
      "9e0390c7-0260-4503-89d8-1d78ebe23802",
      "2ebf1387-e508-47ef-b73e-cfdfde9ede0d"
    ],
    "links": [
      {
        "id": "34f9ab86-6fa2-4b67-a4e7-707462a01484",
        "position": 2,
        "url": "sample string 3",
        "dateсreatedutc": "2016-12-24T14:12:12"
      },
      {
        "id": "34f9ab86-6fa2-4b67-a4e7-707462a01484",
        "position": 2,
        "url": "sample string 3",
        "dateсreatedutc": "2016-12-24T14:12:12"
      }
    ],
    "scheduledtimezoneid": 1,
    "scheduleddateutc": "2016-12-24T14:12:12",
    "datesentutc": "2016-12-24T14:12:12",
    "datecreatedutc": "2016-12-24T14:12:12",
    "dateupdatedutc": "2016-12-24T14:12:12",
    "datedeletedutc": "2016-12-24T14:12:12",
    "schemaid": 21,
    "templateid": "sample string 22",
    "type": 1,
    "attachments": [
      {
        "Url": "sample string 1",
        "Type": 0
      },
      {
        "Url": "sample string 1",
        "Type": 0
      }
    ],
    "removalword": "sample string 23",
    "eventinfo": {
      "orderinfo": {
        "parentuserid": 1,
        "schemaid": 2,
        "groupid": 3,
        "mailinglistid": 4,
        "contactsapikey": "sample string 5",
        "Orderid": "sample string 6",
        "ordername": "sample string 7",
        "externaluserid": "sample string 8",
        "externalname": "sample string 9",
        "firstname": "sample string 10",
        "lastname": "sample string 11",
        "email": "sample string 12",
        "mobile": "sample string 13",
        "netamount": 14.1,
        "tax": 15.1,
        "coupon": "sample string 16",
        "quantity": 17.1,
        "totalamount": 18.1,
        "address": "sample string 19",
        "city": "sample string 20",
        "products": [
          {
            "id": "sample string 1",
            "productname": "sample string 2",
            "name": "sample string 2",
            "description": "sample string 3",
            "sku": "sample string 4",
            "type": "sample string 5",
            "category": "sample string 6",
            "brand": "sample string 7",
            "color": "sample string 8",
            "size": "sample string 9",
            "weight": 10.1,
            "quantity": 11.1,
            "unitprice": 12.1,
            "shippingprice": 13.1,
            "discount": 14.1,
            "tax": 15.1,
            "coupon": "sample string 16",
            "totalprice": 17.1,
            "image": "sample string 18"
          },
          {
            "id": "sample string 1",
            "productname": "sample string 2",
            "name": "sample string 2",
            "description": "sample string 3",
            "sku": "sample string 4",
            "type": "sample string 5",
            "category": "sample string 6",
            "brand": "sample string 7",
            "color": "sample string 8",
            "size": "sample string 9",
            "weight": 10.1,
            "quantity": 11.1,
            "unitprice": 12.1,
            "shippingprice": 13.1,
            "discount": 14.1,
            "tax": 15.1,
            "coupon": "sample string 16",
            "totalprice": 17.1,
            "image": "sample string 18"
          }
        ],
        "url": "sample string 21",
        "purchasedate": "2016-12-24T14:12:12",
        "lastupdate": "2016-12-24T14:12:12",
        "purchasetype": "sample string 22",
        "storeid": 23,
        "ext1": "sample string 24",
        "ext2": "sample string 25",
        "ext3": "sample string 26",
        "ext4": "sample string 27",
        "ext5": "sample string 28",
        "ext6": "sample string 29",
        "ext7": "sample string 30",
        "ext8": "sample string 31",
        "ext9": "sample string 32",
        "ext10": "sample string 33",
        "num1": 1,
        "num2": 1,
        "num3": 1,
        "num4": 1,
        "num5": 1,
        "Date1": "2016-12-24T14:12:12",
        "Date2": "2016-12-24T14:12:12",
        "Date3": "2016-12-24T14:12:12"
      }
    }
  },
  "is_sent": true,
  "scheduled_date": "2016-12-24T14:12:12"
}

application/xml, text/xml

Sample:
<ApiWhatsAppCampaignUpdateCampaignContainer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.BusinessLogic.Domain.WhatsApp.WhatsAppCampaignReport">
  <campaign xmlns:d2p1="http://schemas.datacontract.org/2004/07/ActiveTrail.BusinessLogic.Domain.WhatsApp.Campaign">
    <d2p1:Attachments xmlns:d3p1="http://schemas.datacontract.org/2004/07/ActiveTrail.BusinessLogic.Domain.WhatsApp.Message">
      <d3p1:WhatsAppAttachment>
        <d3p1:Type>IMAGE</d3p1:Type>
        <d3p1:Url>sample string 1</d3p1:Url>
      </d3p1:WhatsAppAttachment>
      <d3p1:WhatsAppAttachment>
        <d3p1:Type>IMAGE</d3p1:Type>
        <d3p1:Url>sample string 1</d3p1:Url>
      </d3p1:WhatsAppAttachment>
    </d2p1:Attachments>
    <d2p1:CanUnsubscribe>true</d2p1:CanUnsubscribe>
    <d2p1:Content>sample string 6</d2p1:Content>
    <d2p1:DateCreatedUtc>2016-12-24T14:12:12</d2p1:DateCreatedUtc>
    <d2p1:DateDeletedUtc>2016-12-24T14:12:12</d2p1:DateDeletedUtc>
    <d2p1:DateSentUtc>2016-12-24T14:12:12</d2p1:DateSentUtc>
    <d2p1:DateUpdatedUtc>2016-12-24T14:12:12</d2p1:DateUpdatedUtc>
    <d2p1:EventInfo>
      <d2p1:OrderInfo xmlns:d4p1="http://schemas.datacontract.org/2004/07/ActiveTrail.BusinessLogic.Domain.Commerce">
        <d4p1:Date1>2016-12-24T14:12:12</d4p1:Date1>
        <d4p1:Date2>2016-12-24T14:12:12</d4p1:Date2>
        <d4p1:Date3>2016-12-24T14:12:12</d4p1:Date3>
        <d4p1:OrderId>sample string 6</d4p1:OrderId>
        <d4p1:Ordername>sample string 7</d4p1:Ordername>
        <d4p1:address>sample string 19</d4p1:address>
        <d4p1:city>sample string 20</d4p1:city>
        <d4p1:coupon>sample string 16</d4p1:coupon>
        <d4p1:email>sample string 12</d4p1:email>
        <d4p1:ext1>sample string 24</d4p1:ext1>
        <d4p1:ext10>sample string 33</d4p1:ext10>
        <d4p1:ext2>sample string 25</d4p1:ext2>
        <d4p1:ext3>sample string 26</d4p1:ext3>
        <d4p1:ext4>sample string 27</d4p1:ext4>
        <d4p1:ext5>sample string 28</d4p1:ext5>
        <d4p1:ext6>sample string 29</d4p1:ext6>
        <d4p1:ext7>sample string 30</d4p1:ext7>
        <d4p1:ext8>sample string 31</d4p1:ext8>
        <d4p1:ext9>sample string 32</d4p1:ext9>
        <d4p1:externalname>sample string 9</d4p1:externalname>
        <d4p1:externaluserid>sample string 8</d4p1:externaluserid>
        <d4p1:firstname>sample string 10</d4p1:firstname>
        <d4p1:lastname>sample string 11</d4p1:lastname>
        <d4p1:lastupdate>2016-12-24T14:12:12</d4p1:lastupdate>
        <d4p1:mobile>sample string 13</d4p1:mobile>
        <d4p1:netamount>14.1</d4p1:netamount>
        <d4p1:num1>1</d4p1:num1>
        <d4p1:num2>1</d4p1:num2>
        <d4p1:num3>1</d4p1:num3>
        <d4p1:num4>1</d4p1:num4>
        <d4p1:num5>1</d4p1:num5>
        <d4p1:products>
          <d4p1:AT3Product>
            <d4p1:Brand>sample string 7</d4p1:Brand>
            <d4p1:Category>sample string 6</d4p1:Category>
            <d4p1:Color>sample string 8</d4p1:Color>
            <d4p1:Coupon>sample string 16</d4p1:Coupon>
            <d4p1:Description>sample string 3</d4p1:Description>
            <d4p1:Discount>14.1</d4p1:Discount>
            <d4p1:Id>sample string 1</d4p1:Id>
            <d4p1:Image>sample string 18</d4p1:Image>
            <d4p1:Name>sample string 2</d4p1:Name>
            <d4p1:Quantity>11.1</d4p1:Quantity>
            <d4p1:ShippingPrice>13.1</d4p1:ShippingPrice>
            <d4p1:Size>sample string 9</d4p1:Size>
            <d4p1:Sku>sample string 4</d4p1:Sku>
            <d4p1:Tax>15.1</d4p1:Tax>
            <d4p1:TotalPrice>17.1</d4p1:TotalPrice>
            <d4p1:Type>sample string 5</d4p1:Type>
            <d4p1:UnitPrice>12.1</d4p1:UnitPrice>
            <d4p1:Weight>10.1</d4p1:Weight>
          </d4p1:AT3Product>
          <d4p1:AT3Product>
            <d4p1:Brand>sample string 7</d4p1:Brand>
            <d4p1:Category>sample string 6</d4p1:Category>
            <d4p1:Color>sample string 8</d4p1:Color>
            <d4p1:Coupon>sample string 16</d4p1:Coupon>
            <d4p1:Description>sample string 3</d4p1:Description>
            <d4p1:Discount>14.1</d4p1:Discount>
            <d4p1:Id>sample string 1</d4p1:Id>
            <d4p1:Image>sample string 18</d4p1:Image>
            <d4p1:Name>sample string 2</d4p1:Name>
            <d4p1:Quantity>11.1</d4p1:Quantity>
            <d4p1:ShippingPrice>13.1</d4p1:ShippingPrice>
            <d4p1:Size>sample string 9</d4p1:Size>
            <d4p1:Sku>sample string 4</d4p1:Sku>
            <d4p1:Tax>15.1</d4p1:Tax>
            <d4p1:TotalPrice>17.1</d4p1:TotalPrice>
            <d4p1:Type>sample string 5</d4p1:Type>
            <d4p1:UnitPrice>12.1</d4p1:UnitPrice>
            <d4p1:Weight>10.1</d4p1:Weight>
          </d4p1:AT3Product>
        </d4p1:products>
        <d4p1:purchasedate>2016-12-24T14:12:12</d4p1:purchasedate>
        <d4p1:purchasetype>sample string 22</d4p1:purchasetype>
        <d4p1:quantity>17.1</d4p1:quantity>
        <d4p1:storeid>23</d4p1:storeid>
        <d4p1:tax>15.1</d4p1:tax>
        <d4p1:totalamount>18.1</d4p1:totalamount>
        <d4p1:url>sample string 21</d4p1:url>
      </d2p1:OrderInfo>
    </d2p1:EventInfo>
    <d2p1:FromName>sample string 3</d2p1:FromName>
    <d2p1:FromNumber>sample string 4</d2p1:FromNumber>
    <d2p1:GroupIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </d2p1:GroupIds>
    <d2p1:Id>b008adcf-c390-49f5-a0f4-243072b6b7dc</d2p1:Id>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:IsLinkTracking>true</d2p1:IsLinkTracking>
    <d2p1:Links>
      <d2p1:WhatsAppCampaignLink>
        <d2p1:DateCreatedUtc>2016-12-24T14:12:12</d2p1:DateCreatedUtc>
        <d2p1:Id>34f9ab86-6fa2-4b67-a4e7-707462a01484</d2p1:Id>
        <d2p1:Position>2</d2p1:Position>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:WhatsAppCampaignLink>
      <d2p1:WhatsAppCampaignLink>
        <d2p1:DateCreatedUtc>2016-12-24T14:12:12</d2p1:DateCreatedUtc>
        <d2p1:Id>34f9ab86-6fa2-4b67-a4e7-707462a01484</d2p1:Id>
        <d2p1:Position>2</d2p1:Position>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:WhatsAppCampaignLink>
    </d2p1:Links>
    <d2p1:MobileNumbers xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringlong>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>2</d3p1:Value>
      </d3p1:KeyValueOfstringlong>
      <d3p1:KeyValueOfstringlong>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>4</d3p1:Value>
      </d3p1:KeyValueOfstringlong>
    </d2p1:MobileNumbers>
    <d2p1:Name>sample string 5</d2p1:Name>
    <d2p1:ParentUserId>2</d2p1:ParentUserId>
    <d2p1:RemovalWord>sample string 23</d2p1:RemovalWord>
    <d2p1:RestricatedCampaignIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:guid>9e0390c7-0260-4503-89d8-1d78ebe23802</d3p1:guid>
      <d3p1:guid>2ebf1387-e508-47ef-b73e-cfdfde9ede0d</d3p1:guid>
    </d2p1:RestricatedCampaignIds>
    <d2p1:RestricatedGroupIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </d2p1:RestricatedGroupIds>
    <d2p1:ScheduledDateUtc>2016-12-24T14:12:12</d2p1:ScheduledDateUtc>
    <d2p1:ScheduledTimeZoneId>1</d2p1:ScheduledTimeZoneId>
    <d2p1:SchemaId>21</d2p1:SchemaId>
    <d2p1:SendType>Regular</d2p1:SendType>
    <d2p1:SendingProfileId>16</d2p1:SendingProfileId>
    <d2p1:StatusType>None</d2p1:StatusType>
    <d2p1:TemplateId>sample string 22</d2p1:TemplateId>
    <d2p1:TotalClicks>17</d2p1:TotalClicks>
    <d2p1:TotalCredits>15</d2p1:TotalCredits>
    <d2p1:TotalFailed>11</d2p1:TotalFailed>
    <d2p1:TotalOpens>10</d2p1:TotalOpens>
    <d2p1:TotalSent>8</d2p1:TotalSent>
    <d2p1:TotalSucceeded>9</d2p1:TotalSucceeded>
    <d2p1:TotalUniqueClicks>18</d2p1:TotalUniqueClicks>
    <d2p1:TotalUnsubscribed>13</d2p1:TotalUnsubscribed>
    <d2p1:Type>Template</d2p1:Type>
    <d2p1:UnsubscribeText>sample string 14</d2p1:UnsubscribeText>
    <d2p1:WizardCurrentStep>64</d2p1:WizardCurrentStep>
    <d2p1:WizardMaxStep>64</d2p1:WizardMaxStep>
  </campaign>
  <is_sent>true</is_sent>
  <scheduled_date>2016-12-24T14:12:12</scheduled_date>
</ApiWhatsAppCampaignUpdateCampaignContainer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.