Hi,
I am trying to create a segment via the REST api. Currently I can subscribe users with the REST API so I know I have the right API key and List id. I am posting data to:
and the data is:
{
"apikey":"xxxxxxxxxx-us3",
"id":"xxxxxxxxx",
"opts":{"type":"saved","name":"test club","segment_opts":{"match":"all","conditions": ["Club":"test club"] } }
}
with apikey and id obviously have the correct values instead of the x. The json package I am getting back is:
{
status: "error"
code: -100
name: "ValidationError"
error: "You must specify a apikey value"
}
What am I missing to make this work?
Thanks