Mailchimp API v3使用复选框添加合并字段

时间:2016-02-19 16:48:49

标签: mailchimp

我需要添加复选框merge-field并将选项添加到列表中。

API密钥有效,其他请求有效,我正在做这样的请求:

POST https://us12.api.mailchimp.com/3.0/lists/424242/merge-fields

Body: {"name": "provider_accounts", "type": "checkboxes", "options": { "choices": ["BMW", "Audi", "Toyota"]}, "tag": "provider_accounts"}

我出于某种原因出错了!

{
  "type": "http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/",
  "title": "Invalid Resource",
  "status": 400,
  "detail": "The resource submitted could not be validated. For field-specific details, see the 'errors' array.",
  "instance": "",
  "errors": [
    {},
    {}
  ]
}

BTW,如果我将类型更改为radio请求,则会创建新的merge-field

0 个答案:

没有答案