Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

409 response for endpoint: PUT /v2/contacts/{contactId}

VladM3
Rookie
0 Votes

When trying to update a contact, I'm seeing a 409 response with this body (please excuse the escaping):

 

"[{\"error_key\":\"http.status.conflict\",\"error_message\":\"There was a conflict between the supplied data and the existing resource.\"}]"

 

The only change to the contact is that they are being added to a new list. During debugging, I noticed that this response also happens even if there are no changes to the contact at all.

 

Here is some info about the contact I'm having trouble with ([REDACTED] is by me):

 

 

 

=> #<ConstantContact::Components::Contact:0x000055e17e578400 @id="[REDACTED]",
@status="ACTIVE", @fax="",
@addresses=[#<ConstantContact::Components::Address:0x000055e17fb6ff38
@id="[REDACTED]", @line1="", @line2="", @line3="",
@city="[REDACTED]", @address_type="PERSONAL", @state_code="OH", @state="Ohio",
@country_code="us", @postal_code="OH", @sub_postal_code="">], @notes=[],
@confirmed=false,
@lists=[#<ConstantContact::Components::ContactList:0x000055e17fb6fad8
@id="[REDACTED]", @status="ACTIVE">,
#<ConstantContact::Components::ContactList:0x000055e17fb6fa60 @id="[REDACTED]",
@status="ACTIVE">,
#<ConstantContact::Components::ContactList:0x000055e17fb6f9e8 @id="[REDACTED]",
@status="ACTIVE">], @source="API",
@email_addresses=[#<ConstantContact::Components::EmailAddress:0x000055e17fb6f830
@id="[REDACTED]", @status="ACTIVE",
@confirm_status="NO_CONFIRMATION_REQUIRED",
@email_address="[REDACTED]@gmail.com">], @prefix_name="",
@first_name="[REDACTED]", @middle_name="", @last_name="Steiner", @job_title="",
@company_name="", @home_phone="", @work_phone="", @cell_phone="",
@custom_fields=[], @created_date="2017-07-28T15:07:04.000Z",
@modified_date="2019-05-20T19:30:47.000Z", @source_details="[REDACTED]">

 

 

Other contacts seem to be working as expected, but this one has been retried many times, encountering the same problem.

 

The documentation doesn't mention a 409 response, so what does the response indicate, and is there any way to avoid it?

1 REPLY 1
David_B.
Employee
0 Votes

Hello,

 

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

 

A 409 conflict usually comes up when you are trying to use something that is unique and already in use, such as an email address. Though I can't say for certain why you are seeing this on an individual update when making no changes at all.

 

Since it seems to only be this one contact, I'd like to get more detail about them. Please email us at webservices(at)constantcontact.com with your Constant Contact username, and the email address for this contact and we'll be happy to take a closer look.

 

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