SOLVED

Refer to My Tokens in program cloned via API

Go to solution
Erik_Heldebro2
Level 8

Refer to My Tokens in program cloned via API

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

1 ACCEPTED SOLUTION

Accepted Solutions
Wyatt_Bales4
Level 4

Re: Refer to My Tokens in program cloned via API

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/cloneP...

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.

View solution in original post

2 REPLIES 2
Wyatt_Bales4
Level 4

Re: Refer to My Tokens in program cloned via API

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/cloneP...

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.

Erik_Heldebro2
Level 8

Re: Refer to My Tokens in program cloned via API

Thanks Wyatt,

This should help