I'm getting error 400 when try to add contacts using Bulk Activity

Regular Participant

I'm getting error 400 when try to add contacts using Bulk Activity

Hi, I'm getting error 400 (Bad Request), while trying to add multiple contacts using Bulk Activity. Can anybody help and let me know what is wrong with my data and why I'm getting this error? following is the Activity URI, List URI and request content I'm posting to activity uri to add contacts.

Activity Collection URI:
"http://api.constantcontact.com/ws/customers/username/activities"

List where contacts being added:
"http://api.constantcontact.com/ws/customers/username/lists/35"

application/x-www-form-urlencoded Request Data
"activityType%3dADD_CONTACTS%26data%3dEmail+Address%2c+First+Name%2c+Last+Name%0d%0af1l1%40email.com%2c+f1%2c+l1%0d%0af2l2%40email.com%2c+f2%2c+l2%0d%0af3l3%40email.com%2c+f3%2c+l3%26lists%3dhttp%3a%2f%2fapi.constantcontact.com%2fws%2fcustomers%2fusername%2flists%2f35"

Error I'm Getting:
The remote server returned an error: (400) Bad Request.

Please also let me know what should be the right Activity Type in this case. I'm using following:
activityType = ADD_CONTACTS

Regards

Akhilesh
0 REPLIES 0
Developer Portal

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

Visit Page