Relationship Between Program Type and Program Channel via Rest API | Community
Skip to main content
April 12, 2017
Question

Relationship Between Program Type and Program Channel via Rest API

  • April 12, 2017
  • 1 reply
  • 3816 views

While creating a program via UI, we have Fixed set of Program Types and based on this value Program Channel Drop Down populates. So, how is this relationship determined?

I am trying to create a Program via api, so on providing the program type, I need all applicable channels for same type. Since program Types are fixed and I am pulling channels via api call : https://113-EDC-810.mktorest.com/rest/asset/v1/channels.json which gives me all the channels. I am not able to figure out the sub set of channels which are applicable to a Program Type.

Please let me know what I am missing here.

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

1 reply

Grégoire_Miche2
Level 10
April 12, 2017

When you define a channel in admin->tags section, you have to tell Marketo to which program type (singular) this channel will apply.

This is why, when creating a program, you are first prompted for the program type and second for the channel, which is dependent on the type.

You should use the Get Channels endpoint, that returns for each channel the "applicableprogramtype" information.

-Greg

April 12, 2017

Hi Greg,

I got the channels from rest/assets/v1/channel endpoint and all the channels contain applicableProgramType field as well. But I have observed that this field's value is not from the [Event,Engagement,Event,Default] which is the set of acceptable program types.

In the API response for channels, I could see the applicableprogramtype as "Program or event or webinar" as well.

So, I am not able to correlate the program Types and Channel. Let me know if I am missing anything.

Grégoire_Miche2
Level 10
April 12, 2017

Hi again,

I have not tried it but the doc is pretty clear on this: http://developers.marketo.com/rest-api/assets/programs/channels/

-Greg