For more information on using API

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

Add an Push Notification campaign step in the automation

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Automation id

integer

Required

Body Parameters

ApiAutomationPushNotificationStepUpdateInfo

Name

Description

Type

Additional information

push_name

Push name

string

Required

is_active

If the step is active

boolean

Required

working_days

campaign_id

globally unique identifier
title

string
subtitle

string

Request Formats

application/json, text/json

Sample:
{
  "push_name": "sample string 1",
  "is_active": true,
  "working_days": [
    {
      "day": 1,
      "from": "00:00:00.1234567",
      "to": "00:00:00.1234567"
    },
    {
      "day": 1,
      "from": "00:00:00.1234567",
      "to": "00:00:00.1234567"
    }
  ],
  "campaign_id": "eedda6d0-3983-4e78-b533-862fbbc34e64",
  "title": "sample string 4",
  "subtitle": "sample string 5"
}

application/xml, text/xml

Sample:
<ApiAutomationPushNotificationStepUpdateInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <campaign_id>eedda6d0-3983-4e78-b533-862fbbc34e64</campaign_id>
  <is_active>true</is_active>
  <push_name>sample string 1</push_name>
  <subtitle>sample string 5</subtitle>
  <title>sample string 4</title>
  <working_days xmlns:d2p1="http://schemas.datacontract.org/2004/07/ActiveTrail.BusinessLogic.Automations.Models">
    <d2p1:AutomationExtendedDetailsWorkingDays>
      <d2p1:day>1</d2p1:day>
      <d2p1:from>PT0.1234567S</d2p1:from>
      <d2p1:to>PT0.1234567S</d2p1:to>
    </d2p1:AutomationExtendedDetailsWorkingDays>
    <d2p1:AutomationExtendedDetailsWorkingDays>
      <d2p1:day>1</d2p1:day>
      <d2p1:from>PT0.1234567S</d2p1:from>
      <d2p1:to>PT0.1234567S</d2p1:to>
    </d2p1:AutomationExtendedDetailsWorkingDays>
  </working_days>
</ApiAutomationPushNotificationStepUpdateInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiAutomationPushNotificationStepInfo

Name

Description

Type

Additional information

id

Step id

integer
push_name

Name of campaign

string

Required

is_designed

If the campaign in the automation step is designd and saved

boolean
type

Type of step from list

object_id

Campaign id

integer
is_active

If the step is active

boolean

Required

step_type

Type of step from list

campaign_id

Campaign id

globally unique identifier
title

string
subtitle

string
working_days

A list of the working days for the step

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "push_name": "sample string 1",
  "is_designed": true,
  "type": "EmailCampaign",
  "object_id": 1,
  "is_active": true,
  "step_type": "EmailCampaign",
  "campaign_id": "401133a0-21b2-455b-8cdf-abeed0a7f908",
  "title": "sample string 4",
  "subtitle": "sample string 5",
  "working_days": [
    {
      "day": 1,
      "from": "00:00:00.1234567",
      "to": "00:00:00.1234567"
    },
    {
      "day": 1,
      "from": "00:00:00.1234567",
      "to": "00:00:00.1234567"
    }
  ]
}

application/xml, text/xml

Sample:
<ApiAutomationPushNotificationStepInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <campaign_id>401133a0-21b2-455b-8cdf-abeed0a7f908</campaign_id>
  <id>1</id>
  <is_active>true</is_active>
  <is_designed>true</is_designed>
  <object_id>1</object_id>
  <push_name>sample string 1</push_name>
  <step_type>EmailCampaign</step_type>
  <subtitle>sample string 5</subtitle>
  <title>sample string 4</title>
  <type>EmailCampaign</type>
  <working_days>
    <ApiAutomationExtendedDetailsWorkingDays>
      <day>1</day>
      <from>PT0.1234567S</from>
      <to>PT0.1234567S</to>
    </ApiAutomationExtendedDetailsWorkingDays>
    <ApiAutomationExtendedDetailsWorkingDays>
      <day>1</day>
      <from>PT0.1234567S</from>
      <to>PT0.1234567S</to>
    </ApiAutomationExtendedDetailsWorkingDays>
  </working_days>
</ApiAutomationPushNotificationStepInfo>