Using REST API Request Trigger Campaigns endpoint to update My Token values

A document by KCS Integration on behalf of Avery Nason on Oct 16, 2019Last modified by Roxann McGlumphy on Oct 18, 2019
Version 2Show Document
  • View in full screen mode

Issue Description
You would like to update My Token values from the Request Trigger Campaigns endpoint, but are unsure of why My Token types can be updated.

 

Issue Resolution
The following My Token types can be updated from the Request Trigger Campaigns endpoint:

    • Date
    • Image
    • Number
    • Rich Text
    • Score
    • Text


An example of a JSON body in the POST request may look like:


{
   "input":
      {
         "leads" : [
            {
               "id" : 1
            }
         ],
         "tokens" : [
            {
               "name": "{{my.DateToken}}",
               "value": "10/16/2020"
            },
            {
               "name": "{{my.EmailScriptToken}}",
               "value": "{$lead.country}"
            },
            {
               "name": "{{my.ImageToken}}",
               "value": "https://www.marketo.com/"
            },
            {
               "name": "{{my.NumberToken}}",
               "value": 222
            },
            {
               "name": "{{my.RichTextToken}}",
               "value": "<strong>Hello World!</strong>"
            },
            {
               "name": "{{my.ScoreToken}}",
               "value": -10
            },
             {
               "name": "{{my.TextToken}}",
               "value": "Hello World!"
            }
         ]
      }
}


Attachments

    Outcomes