Firstly, we'll GET the interest_category
to demonstrate the api_key
is OK:
- Method:
GET
- URL:
https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests
- Request headers:
Authorization: apikey df8658fb18403e29ef4a8437a8eb3705-us11
Response:
{
"interests": [
{
"category_id": "bc914b7356",
"list_id": "e73f5910ca",
"id": "ca7ab24b53",
"name": "Monday",
"display_order": 1,
"_links": [
{
"rel": "self",
"href": "https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/ca7ab24b53",
"method": "GET",
"targetSchema": "https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"
},
{
"rel": "parent",
"href": "https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests",
"method": "GET",
"targetSchema": "https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"
},
{
"rel": "update",
"href": "https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/ca7ab24b53",
"method": "PATCH",
"targetSchema": "https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json",
"schema": "https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"
},
{
"rel": "delete",
"href": "https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests/ca7ab24b53",
"method": "DELETE"
}
]
}
],
"list_id": "e73f5910ca",
"category_id": "bc914b7356",
"_links": [
{
"rel": "self",
"href": "https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests",
"method": "GET",
"targetSchema": "https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Collection.json"
},
{
"rel": "parent",
"href": "https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356",
"method": "GET",
"targetSchema": "https://us11.api.mailchimp.com/schema/3.0/Lists/InterestCategories/Instance.json"
},
{
"rel": "create",
"href": "https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests",
"method": "POST",
"targetSchema": "https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json",
"schema": "https://us11.api.mailchimp.com/schema/3.0/Lists/Interests/Instance.json"
}
],
"total_items": 1
}
Hello,
I am having the same problem creating new interest with V3. Did you end up solving this? Could you share the solution?