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

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

@Taraka16

Description

@Taraka16

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\": \"t1@test.com\",
    	\"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\": \"t2@test.com\",
    	\"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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions