For more information on using API

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

Update SMS campaign

Request Information

URI Parameters

Name

Description

Type

Additional information

id

SMS campaign id

integer

Required

Body Parameters

ApiSmsCampaignUpdateCampaignContainer

Name

Description

Type

Additional information

id

The sms campaign

integer
name

SMS campaign name

string
from_name

From name

string
content

The text of the SMS campaign

string
segment

View camapaign segmantation

scheduling

Scheduling the SMS campaign

is_link_tracking

Is links are tracked

boolean

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "from_name": "sample string 3",
  "content": "sample string 4",
  "segment": {
    "group_ids": [
      1,
      2
    ],
    "restricated_group_ids": [
      1,
      2
    ],
    "restricated_campaign_ids": [
      1,
      2
    ],
    "mailing_list_id": 1,
    "limit_amount": 1
  },
  "scheduling": {
    "is_sent": true,
    "scheduled_time_zone": "Israel",
    "scheduled_date": "2016-12-24T14:12:12"
  },
  "is_link_tracking": true
}

application/xml, text/xml

Sample:
<ApiSmsCampaignUpdateCampaignContainer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models.SmsCampaignReport">
  <content>sample string 4</content>
  <from_name>sample string 3</from_name>
  <is_link_tracking>true</is_link_tracking>
  <name>sample string 2</name>
  <scheduling>
    <is_sent>true</is_sent>
    <scheduled_date>2016-12-24T14:12:12</scheduled_date>
    <scheduled_time_zone>Israel</scheduled_time_zone>
  </scheduling>
  <segment>
    <group_ids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </group_ids>
    <limit_amount>1</limit_amount>
    <mailing_list_id>1</mailing_list_id>
    <restricated_campaign_ids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </restricated_campaign_ids>
    <restricated_group_ids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </restricated_group_ids>
  </segment>
  <id>1</id>
</ApiSmsCampaignUpdateCampaignContainer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.