Variable | Type | Description |
---|---|---|
newsletter_id | string|int | The ID of the newsletter for which to update the excluded segments |
segment_ids | array | Array of excluded segment ids (one int per array item) |
Parameter | Description |
---|---|
boolean | True if the update has succeeded, False otherwise |
true
Code | Message | Description |
---|---|---|
407 | Missing required param newsletter_id | newsletter_id param is required |
131 | No such newsletter with ID: %s. | Invalid access to newsletter_id |
1312 | Newsletter %s can't set segments. | Cannot set segments for this newsletter |
141 | No such segment with ID: %s. | Invalid access to segment_id |
141 | Segment %s has been deleted. | Segment has been deleted |
{ "err": true, "message": "Missing required param newsletter_id", "code": 407 }
{ "err": true, "message": "No such newsletter with ID: 99554.", "code": 131 }
{ "err": true, "message": "No such segment with ID: 9997.", "code": 141 }
{ "err": true, "message": "Segment 15 has been deleted.", "code": 141 }