SegmentFolders

Test dynamic segments

Changed on

Determines whether the specified user matches the specified dynamic segment

post/channel/v1/segments/dynamicSegments/matchUser/{userEmail}

Request

Path parameters

userEmailstring required

User email address

Request body

namestring required

Segment name

codestring

Segment code

Example request

{
  "name": "Canada",
  "code": "XXYU",
  "filters": [
    [
      {
        "conditions": [
          {
            "parameter": "company.state",
            "operator": "matches",
            "values": [
              "Quebec"
            ]
          },
          {
            "parameter": "company.city",
            "operator": "matches",
            "values": [
              "Montreal"
            ]
          }
        ]
      },
      {
        "conditions": [
          {
            "parameter": "company.state",
            "operator": "matches",
            "values": [
              "Quebec"
            ]
          },
          {
            "parameter": "company.city",
            "operator": "matches",
            "values": [
              "Montreal"
            ]
          }
        ]
      }
    ]
  ]
}

Response

OK

matchesboolean

True if the user matches the dynamic segment query

Example response

{
  "matches": "true"
}

Changes