Creating a segment via API with elements-criteria
Hi there,
I am trying to create a contact segment via an API with a filter criteria that includes email address equalling a picklist of email addresses. I have successfully created it with the request body below (by doing a GET call on an existing segment and copying the response), however it has in the body elements.filter.criteria.id which has to match the elements.filter.statement (=274 in this case). If it doesn't, the segment isn't created correctly. Does anyone know what/where these fields are found? Also, where the optionListId is found?
{
"type": "ContactSegment",
"folderId": "701",
"name": "Test 1",
"elements": [
0