Data array
Description
The data
array is used in the following queries:
- Task for bulk trigger launch
- Task for bulk profiles import + trigger launch
- Bulk trigger launch
- Bulk profiles import + trigger campaign launch
The array consists of objects, each of which contains information about a separate profile. As the key and value of the object, you must specify the data by which the profile will be searched in the database.
Parameters
Parameter | Type | Example | Required | Description | |
---|---|---|---|---|---|
string | "john@example.com" | "matching":"email" - by profile and subscriptions "matching":"email_profile" - only by profile "matching":"email_sub" - only for subscriptions | Email address | ||
phone | string | "+79000000000" | "matching":"phone" - by phone number from profile and subscriptions "matching":"phone_sub" - by phone number from subscriptions | Phone number | |
profile_id | string | "abcdefghijklmnqrstuvwxyz" | "matching":"profile_id" | Profile ID | |
field_value | int/string | "12345" | "matching":"custom" | Field value for search | |
custom_request | JSON object |
| When no matching specified | Custom MongoDB database query |
Examples
email
- JSON
- XML
"data": [
{"email": "profile1@example.com"},
{"email": "profile2@example.com"}
]
<data>
<email>profile1@example.com</email>
</data>
<data>
<email>profile2@example.com</email>
</data>
phone
- JSON
- XML
"data": [
{"phone": "+79000000000"},
{"phone": "+79000000001"}
]
<data>
<phone>+79000000000</phone>
</data>
<data>
<phone>+79000000001</phone>
</data>
profile_id
- JSON
- XML
"data": [
{"profile_id": "60ae529b3f62fcdebdb159bb"},
{"profile_id": "843vfdkisfh934hfe834rhkk"}
]
<data>
<profile_id>+79000000000</profile_id>
</data>
<data>
<profile_id>+79000000001</profile_id>
</data>
custom
- JSON
- XML
"data": [
{"field_value": "001"},
{"field_value": "002"}
]
<data>
<field_value>001</field_value>
</data>
<data>
<field_value>002</field_value>
</data>