Refer to My Tokens in program cloned via API | Community
Skip to main content
New Participant
January 11, 2017
Solved

Refer to My Tokens in program cloned via API

  • January 11, 2017
  • 1 reply
  • 1950 views

Hi,

Couldn't find a specific example on the developer website, is it possible to refer to local "My Tokens" in a program that is cloned via API to assign a value to them in the newly cloned program or should this be done manually after it is cloned?

/Erik

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by WyattBa

Hi Erik,

Your question seems to read if it's possible to update a token via the API (yes, as seen here: http://developers.marketo.com/rest-api/assets/tokens/) but I wonder if you're asking if the token comes over as a part of the Clone API since it's not listed in the POST here: http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#/Programs/cloneProgramUsingPOST

From my testing, the Clone API invokes the normal clone functionality but without all the sub-assets. So yes, you could use the Clone API then Program Asset API to update/change the token.

1 reply

WyattBaAccepted solution
New Participant
January 11, 2017

Hi Erik,

Your question seems to read if it's possible to update a token via the API (yes, as seen here: http://developers.marketo.com/rest-api/assets/tokens/) but I wonder if you're asking if the token comes over as a part of the Clone API since it's not listed in the POST here: http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#/Programs/cloneProgramUsingPOST

From my testing, the Clone API invokes the normal clone functionality but without all the sub-assets. So yes, you could use the Clone API then Program Asset API to update/change the token.

ErikHe1Author
New Participant
January 12, 2017

Thanks Wyatt,

This should help