Setting default snippet ID through REST API | Community
Skip to main content
Level 2
Oct 17, 2017 4:07 PM UTC
Solved

Setting default snippet ID through REST API

Hello.  We are leveraging the default snippet attribute “mktoDefaultSnippetId” in the div containing the snippet, it is documented here: http://docs.marketo.com/display/public/DOCS/Email+Template+Syntax .  It works when done manually in the UI of Marketo but emails templates created from the REST API fail and the attribute is just stripped out.  Here is the HTML we are generating:

<div class="mktoSnippet" id="viewAsWebpage" mktoDefaultSnippetId="34" mktoName="View as a webpage link" style="padding: 0px 0px 0px 0px;"></div>

Can someone comment on this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
JonathanDu2Accepted solution
Level 2
Nov 1, 2017 12:23 PM UTC

In case anyone else have this issue, you should know the mktoDefaultSnippetId parameter is not yet supported by the API, confirmed by MKTO support.  Closing.

1 reply

JonathanDu2AuthorAccepted solution
Level 2
Nov 1, 2017 12:23 PM UTC

In case anyone else have this issue, you should know the mktoDefaultSnippetId parameter is not yet supported by the API, confirmed by MKTO support.  Closing.

Translate