'Get Programs' API returns empty string for Status field in the response | Community
Skip to main content
May 20, 2016
Question

'Get Programs' API returns empty string for Status field in the response

  • May 20, 2016
  • 1 reply
  • 1419 views

I am pulling program details by using below API call,

/rest/asset/v1/programs.json?_method=GET&offset=0&maxReturn=200

in the response, status field is always set to empty string

{

  "success": true,

  "warnings": [],

  "errors": [],

  "requestId": "e8f4#154cc5b6d98",

  "result": [

    {

      "id": 20369,

      "name": "Test",

      "description": "Test",

      "createdAt": "2016-03-17T04:15:17Z+0000",

      "updatedAt": "2016-04-20T15:21:28Z+0000",

      "url": "<<some url>>",

      "type": "Default",

      "channel": "Basic Email",

      "folder": {

        "type": "Folder",

        "value": 72359,

        "folderName": "Test"

      },

      "status": "",

      "workspace": "Corporate"

    }

]

}

However, I can see in the Marketo UI that 'Event Status' is set to 'Scheduled Event'. But in the response, I always receive status as blank string.

Any help would be highly appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Nicholas_Manojl
Level 8
May 20, 2016

I think the status field is for nurture programs, and the available responses are either "On" or "Off".

May 22, 2016

This is 'Event Status' on the Marketo UI as shown in the below snapshot. This field is not returned in the Program API call.