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

Anonymous
Not applicable

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

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.

2 REPLIES 2
Nicholas_Manojl
Level 9

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

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

pastedImage_0.png

Anonymous
Not applicable

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

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

pastedImage_0.png