if i use the example code at add & update
{"email_addresses": [
"user1@example.com"
],
"first_name": "John",
"middle_name": "R",
"last_name": "Smith"}
in the io-docs - Add a Contact to the collection
i get :
[{
"error_key":"json.type.invalid",
"error_message":"#/email_addresses/0: Value is of a disallowed type. Allowed types are: Object."
}]
how does the JSON need to be formed?
is the example incorrect?
Solved! Go to Solution.
nevermind it needs to look like this:
"email_addresses": ["user1@example.com"],
"first_name": "John",
"last_name": "Smith"
{"email_addresses": [
{"email_address": "user1@example.com"}
],
"first_name": "John",
"middle_name": "R",
"last_name": "Smith",
"lists": [
{
"id": "1"
}]}
nevermind it needs to look like this:
"email_addresses": ["user1@example.com"],
"first_name": "John",
"last_name": "Smith"
{"email_addresses": [
{"email_address": "user1@example.com"}
],
"first_name": "John",
"middle_name": "R",
"last_name": "Smith",
"lists": [
{
"id": "1"
}]}
The holidays have come and gone. For many seasonal businesses, this means the rush of shoppers has decreased as well. Instead of turning off the lights and waiting for spring, make your email marketi...
See Article