Unable to Approve Emails via REST API | Community
Skip to main content
Level 3
February 12, 2020
Question

Unable to Approve Emails via REST API

  • February 12, 2020
  • 1 reply
  • 2180 views

Unable to approve Email via rest API. I'm betting the attached error however when i approve the Email manually via Marketo UI it's working fine. Can someone please help me out with that. I need to approve more than 10k emails. I'm using below rest API call

 

https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Emails/approveDraftUsingPOST

 

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

1 reply

Tony_Mayse
Level 2
February 12, 2020

Use the token as shown in the UI and returned by the API:  {{program.name}}

 

The API is sensitive to case for tokens when approving a template whereas the UI is not.

Level 3
February 13, 2020

Thank you for the solution. Now i got error for Member. webinar url. We have close to 4000 Emails and can't update them manually. Would be great if you can provide the work around for below as well,

 

{
"requestId": "51e1#1703e0909d3",
"success": false,
"warnings": [],
"errors": [
{
"code": "702",
"message": "Undefined token {{member.webinar url}}"
}
]
}