Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Post requests "gets Required fields were not provided" #42

Open
Taraka16 opened this issue Mar 5, 2018 · 3 comments
Open

Post requests "gets Required fields were not provided" #42

Taraka16 opened this issue Mar 5, 2018 · 3 comments

Comments

@Taraka16
Copy link

Taraka16 commented Mar 5, 2018

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?

@AllStackDev1
Copy link

AllStackDev1 commented Sep 10, 2018

Did u sovle it? Having same issues now

@agordeev
Copy link

I'm getting the same trying to batch my PUT requests

@AllStackDev1
Copy link

check if you are actually passing the required fields.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants