5 Replies Latest reply on May 1, 2018 5:37 PM by Evanthika Amarasiri

    What are the values to be passed in getTagByNameRequest of 'Get Tag By Name' Resource

    Evanthika Amarasiri

      Hi,

       

      I am trying to get results by calling the API Get Tag By Name by passing a request body (getTagByNameRequest) as explained in [1]. By looking at the documentation I cannot figure out what values I should pass with this payload.

       

      {
        "maxReturn": 5,
        "name": "program",
        "offset": 1,
        "order": "string"
      }
      

       

      Do you think you can help me out here? Below would be the response I get from Get Tag Types

       

      {
      :   "success":true,
      :   "errors":
      :   [
      :   ],
      :   "requestId":"a66a#1631a8a344f",
      :   "result":
      :   [
      :   :   {
      :   :   :   "tagType":"Author",
      :   :   :   "applicableProgramTypes":"[email_batch,program,nurture,event,webinar,in_app]",
      :   :   :   "required":false
      :   :   },
      :   :   {
      :   :   :   "tagType":"Campaign Topic",
      :   :   :   "applicableProgramTypes":"[program,nurture,email_batch,in_app]",
      :   :   :   "required":false
      :   :   },
      

       

      And the result I get from Get Tag by Name by passing the name would be

       

      {
      :   "success":true,
      :   "errors":
      :   [
      :   ],
      :   "requestId":"48df#1631a921f88",
      :   "result":
      :   [
      :   :   {
      :   :   :   "tagType":"Campaign Topic",
      :   :   :   "applicableProgramTypes":"[program,nurture,email_batch,in_app]",
      :   :   :   "required":false,
      :   :   :   "allowableValues":"[xxx,yyy,zzzz,dddd,aaaa]"
      :   :   }
      :   ]
      }
      

       

      [1] - http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Tags/getTagByNameUsingGET