Why Can't I Update a Contact's Status

SOLVED
Highlighted
Advisor

Why Can't I Update a Contact's Status

Using C# wrapper for Version 2 APIs. In the following code fragment, c is a Contact object and api is a

CTCT.ConstantContact object.

 

c.FirstName = "George";

c.Status = Status.Removed;

c = api.UpdateContact(c, false);

 

The modification to the FirstName property works. But the attempt to change the status fails very quietly.

 

1) Is there no way to modify a contact's status via API?

2) What is the significance of the 2nd parameter in the UpdateContact call?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CTCT Employee

Re: Why Can't I Update a Contact's Status

Hello Mike,

The second parameter in UpdateContact is a boolean value stating whether or not the action to update the contact was performed by the Site Owner, or by the contact. This is important in certain situations, such as when a contact was previously unsubscribed, they can only be resubscribed when this action is performed by the contact. More information is available at:

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

View solution in original post

2 REPLIES 2
Highlighted
Advisor

Re: Why Can't I Update a Contact's Status

Looks like DeleteContact call will do the trick. I still would like an answer to the 2nd question...

 

2) What is the significance of the 2nd parameter in the UpdateContact method?

CTCT Employee

Re: Why Can't I Update a Contact's Status

Hello Mike,

The second parameter in UpdateContact is a boolean value stating whether or not the action to update the contact was performed by the Site Owner, or by the contact. This is important in certain situations, such as when a contact was previously unsubscribed, they can only be resubscribed when this action is performed by the contact. More information is available at:

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

View solution in original post

Developer Portal

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