Can't set "Unsubscribed" through API | Community
Skip to main content
May 6, 2014
Question

Can't set "Unsubscribed" through API

  • May 6, 2014
  • 6 replies
  • 1306 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

May 6, 2014
Any help? Am I looking at this incorrectly?
May 7, 2014
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
May 7, 2014
Thanks. Does this also mean that it is not possible to set unsubscribed with current api?
May 7, 2014
You can set unsubscribed using SOAP APIs by calling a campaign which has flow action to set the value of unsubscribed attribute.  
June 18, 2014
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/
October 9, 2014
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.