For more information on using API

POST http://webapi.mymarketing.co.il/api/automations/{id}/SMSCampaignSteps

Add an SMS campaign step in the automation

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Automation id

integer

Required

Body Parameters

ApiAutomationSmsStepUpdateInfo

Name

Description

Type

Additional information

campaign_name

Campaign name

string

Required

from_name

From name

string

Required

content

Message content

string

Required

is_link_tracking

If the links are tracked

boolean
unsubscribe_text

Unsbscribe test to add to link

string
is_active

If the step is active

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "campaign_name": "sample string 1",
  "from_name": "sample string 2",
  "content": "sample string 3",
  "is_link_tracking": true,
  "unsubscribe_text": "sample string 5",
  "is_active": true
}

application/xml, text/xml

Sample:
<ApiAutomationSmsStepUpdateInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <campaign_name>sample string 1</campaign_name>
  <content>sample string 3</content>
  <from_name>sample string 2</from_name>
  <is_active>true</is_active>
  <is_link_tracking>true</is_link_tracking>
  <unsubscribe_text>sample string 5</unsubscribe_text>
</ApiAutomationSmsStepUpdateInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiAutomationSmsStepInfo

Name

Description

Type

Additional information

campaign_name

Campaign name

string

Required

from_name

From name

string

Required

content

Message content

string

Required

is_link_tracking

If the links are tracked

boolean
unsubscribe_text

Unsbscribe test to add to link

string
id

Step id

integer
type

Step type from list

object_id

Sms campaign id

integer

Response Formats

application/json, text/json

Sample:
{
  "campaign_name": "sample string 1",
  "from_name": "sample string 2",
  "content": "sample string 3",
  "is_link_tracking": true,
  "unsubscribe_text": "sample string 5",
  "id": 1,
  "type": "EmailCampaign",
  "object_id": 1
}

application/xml, text/xml

Sample:
<ApiAutomationSmsStepInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <campaign_name>sample string 1</campaign_name>
  <content>sample string 3</content>
  <from_name>sample string 2</from_name>
  <id>1</id>
  <is_link_tracking>true</is_link_tracking>
  <object_id>1</object_id>
  <type>EmailCampaign</type>
  <unsubscribe_text>sample string 5</unsubscribe_text>
</ApiAutomationSmsStepInfo>