APIv3-examples
APIv3-examples copied to clipboard
Post requests "gets Required fields were not provided"
I'm using postman to send post request to mailchimp. My call look like this:
{
"operations": [
{
"method": "POST",
"path": "lists/ff80d78e68/members",
"operation_id": "my-op-id",
"params": {},
"body": "{\"email_address\": \"[email protected]\",
\"status\": \"subscribed\",
\"merge_fields\": {
\"IMIS_ID\": \"12\",
\"FNAME\": \"test1\",
\"LNAME\": \"test1last\"
}
}"
},
{
"operation_id": "my-op-id",
"method": "POST",
"path": "lists/ff80d78e68/members",
"body": "{
\"email_address\": \"[email protected]\",
\"status\": \"subscribed\",
\"merge_fields\": {
\"IMIS_ID\": \"13\",
\"FNAME\": \"test2\",
\"LNAME\": \"test2last\"
}
}"
}
]
}
And that's what I get:
"errors": [
{
"field": "",
"message": "Required fields were not provided: email_address"
}
Anybody can tell me what I do wrong?
Did u sovle it? Having same issues now
I'm getting the same trying to batch my PUT requests
check if you are actually passing the required fields.