cancel
Showing results for 
Search instead for 
Did you mean: 
You deserve the best.
Beginning Saturday 2/15 we will be upgrading our phone system to ensure we are providing you with the best possible experience.
Due to this upgrade, we will be limited to Chat support only on Saturday from 10-8 pm ET.
On Monday, President's Day, we plan to have both Chat and Phone support available from 10-6 pm ET on the new system.
Thank you for your patience while we make these important updates.

What should the lists array look like for more that one list when creating a contact?

SOLVED
Highlighted
Occasional Contributor

What should the lists array look like for more that one list when creating a contact?

I want to create a new contact and add them to multiple lists on the

POST: https://api.constantcontact.com/v2/contacts endpoint

	"lists": [
		{
		"id": "1"
		}
	],

I want to set multiple ids what would that look like?

Thanks

Tags (1)
1 REPLY 1
Moderator

Re: What should the lists array look like for more that one list when creating a contact?

Hello,

 

Thank you for reaching out to Constant Contact API Developer Support.

 

You can do this by adding an additional list item to the lists array. For example:

 

	"lists": [
		{
		"id": "1"
		},
		{
		"id": "2"
		}
	],

 

Please give that a try and let me know if you have any other questions!

 

Regards,

David B.
Tier II API Support Engineer