Cannot create segment using MailChimp API v3

前端 未结 2 514
花落未央
花落未央 2021-01-12 19:47

I\'m using the \"playground\" to test creating a segment but I keep getting validations errros

my request:

{
    \"name\": \"MyTest\",
    \"options\         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-12 20:06

    Actually the format of the JSON should be as following:

    {
        "name":"email based",
        "options":{
                    "match": "any",
                    "conditions":[
                                    {
                                        "condition_type":"EmailAddress",
                                        "field":"merge0",
                                        "op":"is",
                                        "value":"p001@mymaildomain.xxx"
                                    },
                                    {
                                        "condition_type":"EmailAddress",
                                        "field":"merge0",
                                        "op":"is",
                                        "value":"p002@mymaildomain.xxx"
                                    }
                    ]
        }
    

提交回复
热议问题