API - Unable to get Emails by Program Id
Hi, I have the following folder structure.
|- Folder (id: 1123)
|- Program (id: 3705)
|-Folder (id: unknown)
When I call the endpoint: `https://{{munchkin}}.mktorest.com/rest/asset/v1/emails.json?maxReturn=60&folder={"id":3705,"type":"program"}` I get the following response:
{"success":true,"errors":[],"requestId":"565d#17b4032e97d","warnings":["No assets found for the given search criteria."]}
And when I run it by the parent folder (https://{{munchkin}}.mktorest.com/rest/asset/v1/emails.json?maxReturn=60&folder={"id":1123,"type":"Folder"}) I get the following response:
{"requestId":"17580#17b4033bc63","success":false,"warnings":[],"errors":[{"code":"711","message":"Invalid folder type for email"}]}
My question is how can I get the emails that are part of the program? I have the program id but it does not return the data.