The new API is giving me some headache with creating or updating contact lists.
Using the .NET wrapper and the IO Docs, I keep getting the following response message:
"error_message":"There was a conflict between the supplied data and the existing resource."
I even tried mulitple browsers (Chrome, IE 10)
This issue occurs while executing the JSON payload metnioned in the API documentation.about creating a contact list.
Can anyone shed some light on this issue?
That message is indicative of a 409 (duplicate) error. Do you already have a list with the name "Hot Opportunities"? Can you create a list with a different name?
API Support Specialist
The list does not exist. To be sure, I tried again with different listnames. I am sure they were never created before, and the result was the same.
I also tested deleting and updating a list. The same error message is shown after performing these actions aswell.
Get functionality works fine though. I can also create/update contacts. Scheduling a campaign also works as expected. I only seem to be running into this issue with creating/updating/deleting contact lists.
I did just try to create a new list with the same JSON payload you posted, and it went through successfully for me in IO Docs using Chrome. Would you mind emailing us your Constant Contact username and the API Key you're using, to firstname.lastname@example.org so that we can take a look at those for any issues? If you wouldn't mind giving us your access token as well, we can troubleshoot to see if we can reproduce the issue (otherwise, we'll just try to identify any issues with your account or key). Thanks in advance.
API Support Specialist
Thank you for your response Shannon.
I got the feeling there was something conflicting on my constanct contact account. Some time ago, I had some issues creating a contact list using the API v1: setting the OptInDefault property to true creates some conflicts in the sign-up tools. After contacting webservices@.. they suggested me to switch to API v2.
Resolving those conflicts in the signup-tools -> Edit Join My Mailing List Form solved the issue, and I can now execute the JSON mentioned earlier successfully.
I am using constant contact php-api and I have the exact same problem, but it does not occur while creating a new contact while the same error occurs when I am updating a contact (when confirmed opt-in is on he has confirmed the subscription). Also I dont get any error whether it is adding a new contact or updating an existing contact while the Confirmed opt-in is not used. Dont know what to do, the above solution didn't work for me.
Please help me.
Thanks for reporting this. We confirmed that there are some issues with state transitions for contacts in the "Awaiting Confirmation" state (I.E. they were sent a confirmed optin email and didn't click the link). We are investigating and hope to have a fix soon. Will post more information in our release notes as we have more details. You can find this information on our developer website: http://developer.constantcontact.com/docs/release-notes/may-2014-rel-notes.html