AnsweredAssumed Answered

how should the request for Schedule Campaigns REST API should be ?

Question asked by 31ca5c61b8c8a43b12b98b70c27e81075f962b5d on Sep 2, 2016
Latest reply on Sep 5, 2016 by sanford.whiteman

I am trying Schedule campaigns Rest api and i provide the request as below,

 

http://developers.marketo.com/documentation/rest/schedule-campaign/

 

    {

       "input":

          {

         

             "tokens" : [

                {

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

                   "value": 11

                }

            ]

          }

    }

 

I am getting the following exception as response,

 

{"requestId":"66de#156ebf0da0a","success":false,"errors":[{"code":"1003","message":"Invalid token value: [\"Aparna1\"] "}]}

 

Wanted to know if there should be some other way to provide tokens input. {{my.Aparna1}} is a token of type number. I have tried providing value as "11",11 and even a float "11.09". Should i provide something different? I have also ensured {{my.Aparna1}} is present in the same schedule campaign id. Please hlep out.

Outcomes