Variable | Type | Description |
---|---|---|
list_id | string|int | The ID of the list for which to import the subscribers |
segments | null|array | Array of segment ids where the users should be added to. You can also add tag names, by using the prefix tag_, to set tags on subscribers, eg: tag_tag1 |
json_lines | string | A string containing the users which are to be imported (lines separated by newline, each line containing the subscriber information in valid JSON format). Each line must contain the email field. |
delay | string|int | If the imports should start after a period of time, a numerical value greater than 0 can be set for delay (the number of seconds after which the imports should start) |
Parameter | Description |
---|---|
array | the ids of the scheduled imports |
[ "import_id", "import_id_2" ]
Code | Message | Description |
---|---|---|
407 | Missing required param list_id | list_id param is required |
407 | Missing required param segments | segments param is required |
407 | Missing required param json_lines | json_lines param is required |
407 | Missing required param delay | delay param is required |
101 | Not allowed for list_id = %s | Invalid access to list_id |
141 | No such segment with ID: %s. | Invalid access to segment_id |
141 | Segment %s has been deleted. | Segment has been deleted |
404 | Could not parse JSON lines | Could not parse JSON lines |
407 | Import not allowed for this account | Import not allowed for this account |
144 | Cannot import to this segment | Import not allowed for this segment |
144 | Cannot import to segment %s | Import not allowed for this segment |
127 | Subscriber limit for this account has been reached | Subscriber limit for this account has been reached |
408 | Import could not be made | An error occurred. The import could not be made. |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Missing required param segments", "code": 407 }
{ "err": true, "message": "Missing required param json_lines", "code": 407 }
{ "err": true, "message": "No such segment with ID: 3455.", "code": 141 }
{ "err": true, "message": "Segment 15 has been deleted.", "code": 141 }
{ "err": true, "message": "Could not parse JSON lines", "code": 16002 }