API Isn't Creating a Program | Community
Skip to main content
Neil_Davis
New Participant
February 17, 2021
Solved

API Isn't Creating a Program

  • February 17, 2021
  • 1 reply
  • 1531 views

I'm attempting to create a program using the Marketo REST API. I seem to get a 200 response without a response body. Can someone help me understand what the problem might be?

 

API Route: POST /rest/asset/v1/programs

Request Body:

{ "type": "Default", "channel": "Nurture Email", "name": "EmailProgramTest", "folder": { "type": "Folder", "id": 619900 }, "costs": [ { "startDate":"2022-01-01", "cost":2000 } ] }
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 Jay_Jiang

create program endpoint takes form data not json. as per the example in api docs, your payload should be something like:

name=EmailProgramTest&folder={"id":619900,"type":"Folder"}&type=Default&channel=Nurture Email&costs=[{"startDate":"2022-01-01","cost":2000}]

 

p.s. that's a really big number for folder id...

1 reply

Jay_Jiang
Jay_JiangAccepted solution
New Participant
February 17, 2021

create program endpoint takes form data not json. as per the example in api docs, your payload should be something like:

name=EmailProgramTest&folder={"id":619900,"type":"Folder"}&type=Default&channel=Nurture Email&costs=[{"startDate":"2022-01-01","cost":2000}]

 

p.s. that's a really big number for folder id...