Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

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

SOLVED
Go to solution
ZelenaR4
Campaign Contributor
0 Votes

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

1 ACCEPTED SOLUTION
David_B.
Employee

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

View solution in original post

1 REPLY 1
David_B.
Employee

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

Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up