REST API - Assign Email to Program | Community
Skip to main content
New Participant
August 1, 2022
Solved

REST API - Assign Email to Program

  • August 1, 2022
  • 1 reply
  • 1264 views

Hi,

 

I have created an Email-type Program (Program Test) and a child Email (Test Email 002):

I would like to use the REST API to associate this Email with the parent Program so that it shows up as the selected Email in the Program UI:

I've tried looking through the documentation for the REST API but have been unable to find an endpoint that will allow me to perform this action. Does such an endpoint exist and if so, could you point me to the relevant documentation?

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

AFAIK - I don't think something of this sort is possible via API. But, you can always clone (via. UI/API) an existing email program with email asset added in the Email tile, the cloned email program would have the cloned email within it added to the Email tile. Just a note that you'd not be able to add an un-approved email asset to the email program. So if you clone from an email program with an un-approved email asset to start with, the cloned email program would not have the asset added to it (like your snapshot).

 

1 reply

Darshil_Shah1
Darshil_Shah1Accepted solution
Community Manager
August 1, 2022

AFAIK - I don't think something of this sort is possible via API. But, you can always clone (via. UI/API) an existing email program with email asset added in the Email tile, the cloned email program would have the cloned email within it added to the Email tile. Just a note that you'd not be able to add an un-approved email asset to the email program. So if you clone from an email program with an un-approved email asset to start with, the cloned email program would not have the asset added to it (like your snapshot).

 

New Participant
August 1, 2022

Thank you.