Re: Can't set "Unsubscribed" through API

Anonymous
Not applicable

Can't set "Unsubscribed" through API

I am unable to set "Unsubscribed" through API. I assume this field is for people who have set "do not contact" - note this is set through outside systems (as I am using the API).

I have set the value to true, true, false, 0, yes. I get no error; however, the field is not set
Tags (1)
6 REPLIES 6
Anonymous
Not applicable

Re: Can't set "Unsubscribed" through API

Any help? Am I looking at this incorrectly?
Anonymous
Not applicable

Re: Can't set "Unsubscribed" through API

You'll be able to set unsubscribed field with the new REST APIs.  If you want access, please send a request to restapibeta@marketo.com
Anonymous
Not applicable

Re: Can't set "Unsubscribed" through API

Thanks. Does this also mean that it is not possible to set unsubscribed with current api?
Anonymous
Not applicable

Re: Can't set "Unsubscribed" through API

You can set unsubscribed using SOAP APIs by calling a campaign which has flow action to set the value of unsubscribed attribute.  
Anonymous
Not applicable

Re: Can't set "Unsubscribed" through API

To add to Raj's comment, I would use the requestCampaign API to call a campaign with a flow action that has an unsubscribe action.

http://developers.marketo.com/documentation/soap/requestcampaign/
Anonymous
Not applicable

Re: Can't set "Unsubscribed" through API

David, I wanted to folllow-up here. Have you had a chance to use the REST API? 

The REST API name for the field is "unsubscribed". You can use Create/Update Leads REST API to do this.