5 Replies Latest reply on Jun 22, 2017 1:41 PM by Sanford Whiteman

    My.Token value not updating on REST API call

    Sid Ewing

      Hello,

      I'm trying to replace the value of a my.token and send an email out using the REST API. I'm able to send the email just fine, but the my.token (my.bodyReplacement) is only adding the default value to my email. What am I doing wrong here?

       

      This is the JSON we are sending to update the value of a token.

       

      {

        "input": {

          "leads": [

            {

              "id": 327947

            }

          ],

          "tokens": [

            {

                "name": "{{my.bodyReplacement}}",

              "value": "Hello World, this is your new body text"

            }

          ]

        }

      }