Unable to create Email Template via postman | Community
Skip to main content
New Participant
July 27, 2021
Solved

Unable to create Email Template via postman

  • July 27, 2021
  • 2 replies
  • 2630 views

Hi, I am trying to create EmailTemplate at Marketo using the following endpoint/requestBody via postman, but its not letting me create one. The accesstoken is fine. I have tested with a successful GET request. I am following the syntax mentioned in the API docs:

https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Email_Templates/createEmailTemplateUsingPOST

 

 

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 Arun_Sharma9

Hi @sarausman 

 

I tested the flow through Postman and figured out few things which you've to change in your API Call.

 

1) Make sure you are passing the data in body as "form-data"

2) The folder value you are passing is also incorrect, make sure you are getting the folder id by calling Marketo API Asset - Marketo Developers

3) For the "content" use "Metadata-file" (means .html file) instead of passing html directly in parameter

 

Screenshot of my sample template creation call:

 

Result:

 

Folder ID:

 

Thanks,

Arun Sharma

2 replies

Arun_Sharma9
Arun_Sharma9Accepted solution
New Participant
July 28, 2021

Hi @sarausman 

 

I tested the flow through Postman and figured out few things which you've to change in your API Call.

 

1) Make sure you are passing the data in body as "form-data"

2) The folder value you are passing is also incorrect, make sure you are getting the folder id by calling Marketo API Asset - Marketo Developers

3) For the "content" use "Metadata-file" (means .html file) instead of passing html directly in parameter

 

Screenshot of my sample template creation call:

 

Result:

 

Folder ID:

 

Thanks,

Arun Sharma

Arun Sharma
Arun_Sharma9
New Participant
July 27, 2021

It seems you are missing "access_token" in your request.

 

EDITED by moderator: the access_token must be correct above, or the server would throw a different error.

Arun Sharma