The fields you're using of Custom1, Custom2 etc. will be ignored during any PUT or POST for the Contacts collection, which is why you are not seeing these be populated. The correct field names are CustomField1, CustomField2 etc. If you are receiving a 400 error, this means that what you are attempting is a bad request. This can be caused by PUTing or POSTing your request to a bad URL or have bad XML data.
If you are receiving this error, can you provide both your XML and the URI you're PUTing to at . This way we can take a look at your data and see why the 400 is being returned.
I'm getting a 400 with the following error. The CustomField2 seems to be causing the problem, because if I remove it the operation succeeds. What is invalid here? Is there a 50 character limit on custom fields entered through the web API? If I shorten the field to 50 characters, it works as well. Note, I can enter more then 50 characters in a custom field through the UI. Thanks in advance
<title type="text"> </title>
<CustomField2>Palmetto Health Physician Practices-BaptistMedical Ctr</CustomField2>
<ContactLists><ContactList id="http://api.constantcontact.com/ws/customers/davincima/lists/1" /><ContactList id="http://api.constantcontact.com/ws/customers/davincima/lists/14" /><ContactList id="http://api.constantcontact.com/ws/customers/davincima/lists/3" /></ContactLists>
You're correct, the problem is coming from a 50 character limit on those fields. This limitation is in our Contacts database, not just through API calls. While our user interface does not return an error, it does truncate the fields to 50 characters.