cancel
Showing results for 
Search instead for 
Did you mean: 

activities add contacts JSON error

Occasional Contributor

activities add contacts JSON error

i am trying to bulk upload contacts

 

i've formed the JSON, but i get this error when i POST it:

 

[{"error_key":"json.field.invalid","error_message":"#/import_data/0/email_adresses: Property was found but is not permitted at this location."},{"error_key":"json.field.missing","error_message":"#/import_data/0/email_addresses: Property is required but not found."}] 

 

 

i can't tell where my string is different from the example at bulk-activities-add-contacts.html

 

is the format the API wants different from the example?

 

 

this is the submission:

 

{
"import_data": [{
"email_adresses": [
"user20@example.com"
],
"first_name": "john",
"last_name": "smith"
}],
"lists": [
"61"
],
"column_names": [
"EMAIL",
"FIRST NAME",
"LAST NAME"
]
}

 

 

 

 

2 REPLIES 2
Highlighted
CTCT Employee

Re: activities add contacts JSON error

Hey rayM768,
Sorry for the delay in getting back to you!  Just got back in the office so trying to catch up :)


The reason you're getting this error is because:

"email_adresses": [
"user20@example.com"
],

Should be:

"email_addresses": [
"user20@example.com"
],


Looks like you're just missing a "d" :)

 

Let me know if that works for you!

 

Thanks,

Mike

-------------------------------------------
Check out our developer portal: http://developer.constantcontact.com
Occasional Contributor

Re: activities add contacts JSON error

ugh... staring at the screen to long. 

 

thanks a ton