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 | If there is no "matching" parameter | MongoDB query on profile fields | |
custom_data | JSON object | {"field": "value"} | No | Add some data to be used in Action hooks. |
Examples
email
"data": [
{"email": "profile1@example.com"},
{"email": "profile2@example.com"}
]
phone
"data": [
{"phone": "+79000000000"},
{"phone": "+79000000001"}
]
profile_id
"data": [
{"profile_id": "60ae529b3f62fcdebdb159bb"},
{"profile_id": "843vfdkisfh934hfe834rhkk"}
]
custom
"data": [
{"field_value": "001"},
{"field_value": "002"},
]