For more information on using API

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

Update the given segmentation

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Segmentation id

integer

Required

Body Parameters

ApiSegmentationUpdateContainer

Name

Description

Type

Additional information

rules_segment

Contains rules segment

name

Segmentation name

string

Request Formats

application/json, text/json

Sample:
{
  "rules_segment": {
    "additional_rules_sets": [
      {
        "connecting_operator": "And",
        "segment_rules_set": {
          "base_rule": {
            "type_id": "Info",
            "field": "Email",
            "operator_type": "Is",
            "seg_operator": "Equals",
            "value": [
              "sample string 1",
              "sample string 2"
            ]
          },
          "additional_rules": [
            {
              "connecting_operator": "And",
              "rule": {
                "type_id": "Info",
                "field": "Email",
                "operator_type": "Is",
                "seg_operator": "Equals",
                "value": [
                  "sample string 1",
                  "sample string 2"
                ]
              }
            },
            {
              "connecting_operator": "And",
              "rule": {
                "type_id": "Info",
                "field": "Email",
                "operator_type": "Is",
                "seg_operator": "Equals",
                "value": [
                  "sample string 1",
                  "sample string 2"
                ]
              }
            }
          ]
        }
      },
      {
        "connecting_operator": "And",
        "segment_rules_set": {
          "base_rule": {
            "type_id": "Info",
            "field": "Email",
            "operator_type": "Is",
            "seg_operator": "Equals",
            "value": [
              "sample string 1",
              "sample string 2"
            ]
          },
          "additional_rules": [
            {
              "connecting_operator": "And",
              "rule": {
                "type_id": "Info",
                "field": "Email",
                "operator_type": "Is",
                "seg_operator": "Equals",
                "value": [
                  "sample string 1",
                  "sample string 2"
                ]
              }
            },
            {
              "connecting_operator": "And",
              "rule": {
                "type_id": "Info",
                "field": "Email",
                "operator_type": "Is",
                "seg_operator": "Equals",
                "value": [
                  "sample string 1",
                  "sample string 2"
                ]
              }
            }
          ]
        }
      }
    ],
    "basic_rules_set": {
      "base_rule": {
        "type_id": "Info",
        "field": "Email",
        "operator_type": "Is",
        "seg_operator": "Equals",
        "value": [
          "sample string 1",
          "sample string 2"
        ]
      },
      "additional_rules": [
        {
          "connecting_operator": "And",
          "rule": {
            "type_id": "Info",
            "field": "Email",
            "operator_type": "Is",
            "seg_operator": "Equals",
            "value": [
              "sample string 1",
              "sample string 2"
            ]
          }
        },
        {
          "connecting_operator": "And",
          "rule": {
            "type_id": "Info",
            "field": "Email",
            "operator_type": "Is",
            "seg_operator": "Equals",
            "value": [
              "sample string 1",
              "sample string 2"
            ]
          }
        }
      ]
    }
  },
  "name": "sample string 1"
}

application/xml, text/xml

Sample:
<ApiSegmentationUpdateContainer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <name>sample string 1</name>
  <rules_segment>
    <additional_rules_sets>
      <ApiAdditionalSegmentRulesSet>
        <connecting_operator>And</connecting_operator>
        <segment_rules_set>
          <additional_rules>
            <ApiAdditionalSegmentRule>
              <connecting_operator>And</connecting_operator>
              <rule>
                <field>Email</field>
                <operator_type>Is</operator_type>
                <seg_operator>Equals</seg_operator>
                <type_id>Info</type_id>
                <value xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:string>sample string 1</d9p1:string>
                  <d9p1:string>sample string 2</d9p1:string>
                </value>
              </rule>
            </ApiAdditionalSegmentRule>
            <ApiAdditionalSegmentRule>
              <connecting_operator>And</connecting_operator>
              <rule>
                <field>Email</field>
                <operator_type>Is</operator_type>
                <seg_operator>Equals</seg_operator>
                <type_id>Info</type_id>
                <value xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:string>sample string 1</d9p1:string>
                  <d9p1:string>sample string 2</d9p1:string>
                </value>
              </rule>
            </ApiAdditionalSegmentRule>
          </additional_rules>
          <base_rule>
            <field>Email</field>
            <operator_type>Is</operator_type>
            <seg_operator>Equals</seg_operator>
            <type_id>Info</type_id>
            <value xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </value>
          </base_rule>
        </segment_rules_set>
      </ApiAdditionalSegmentRulesSet>
      <ApiAdditionalSegmentRulesSet>
        <connecting_operator>And</connecting_operator>
        <segment_rules_set>
          <additional_rules>
            <ApiAdditionalSegmentRule>
              <connecting_operator>And</connecting_operator>
              <rule>
                <field>Email</field>
                <operator_type>Is</operator_type>
                <seg_operator>Equals</seg_operator>
                <type_id>Info</type_id>
                <value xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:string>sample string 1</d9p1:string>
                  <d9p1:string>sample string 2</d9p1:string>
                </value>
              </rule>
            </ApiAdditionalSegmentRule>
            <ApiAdditionalSegmentRule>
              <connecting_operator>And</connecting_operator>
              <rule>
                <field>Email</field>
                <operator_type>Is</operator_type>
                <seg_operator>Equals</seg_operator>
                <type_id>Info</type_id>
                <value xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:string>sample string 1</d9p1:string>
                  <d9p1:string>sample string 2</d9p1:string>
                </value>
              </rule>
            </ApiAdditionalSegmentRule>
          </additional_rules>
          <base_rule>
            <field>Email</field>
            <operator_type>Is</operator_type>
            <seg_operator>Equals</seg_operator>
            <type_id>Info</type_id>
            <value xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </value>
          </base_rule>
        </segment_rules_set>
      </ApiAdditionalSegmentRulesSet>
    </additional_rules_sets>
    <basic_rules_set>
      <additional_rules>
        <ApiAdditionalSegmentRule>
          <connecting_operator>And</connecting_operator>
          <rule>
            <field>Email</field>
            <operator_type>Is</operator_type>
            <seg_operator>Equals</seg_operator>
            <type_id>Info</type_id>
            <value xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </value>
          </rule>
        </ApiAdditionalSegmentRule>
        <ApiAdditionalSegmentRule>
          <connecting_operator>And</connecting_operator>
          <rule>
            <field>Email</field>
            <operator_type>Is</operator_type>
            <seg_operator>Equals</seg_operator>
            <type_id>Info</type_id>
            <value xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </value>
          </rule>
        </ApiAdditionalSegmentRule>
      </additional_rules>
      <base_rule>
        <field>Email</field>
        <operator_type>Is</operator_type>
        <seg_operator>Equals</seg_operator>
        <type_id>Info</type_id>
        <value xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </value>
      </base_rule>
    </basic_rules_set>
  </rules_segment>
</ApiSegmentationUpdateContainer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.