user_list = {
'xsi_type': 'CrmBasedUserList',
'name': audience_name + ' ' + str(uuid.uuid4()),
'description': 'A list of customers that originated from email addresses',
'membershipLifeSpan': 10000,
'uploadKeyType': 'CONTACT_INFO'
}
# Create an operation to add the user list.
operations = [{
'operator': 'ADD',
'operand': user_list
}]
result = self.user_list_service.mutate(operations)
user_list_id = result['value'][0]['id']