Creating Segments via API
Hello,
I'm working on creating a script that will allow me to programmatically create segments in Eloqua and add filter criteria to the segments for use in marketing deployments. I'm able to successfully create the segment, but when attempting to add the filters or create the segment with filters included in the request, I'll either receive a 400 response code with a nondescript reason stating "Request contains types that couldn't be mapped.".
If I replicate what's returned by a "GET" call on the https://secure.p01.eloqua.com/api/REST/2.0/assets/contact/segment/{segment_id}endpoint for a segment I've created through the UI, the filter gets successfully added on the new segment, but is removed from the segment I was copying it from, which defeats the purpose of what I'm attempting to do.