You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Creating Segments via API

in Eloqua 2 comments

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!