Hey everyone,
Trying to connect to the create program endpoint (Create a Program » Marketo Developers ) and am consistently receiving a 701 "folder cannot be null" error.
Here's my request body: {:folder=>{:id=>35, :type=>"Folder"}, :name=>"Blah blah some program", :type=>"Event", :channel=>"Live Event"}
Sending the request with a content-type header of application/json.
Is the documentation incorrect on this one? It clearly states that a folder param is required, which is an object including members id and type. id must be a folder id and type must be folder.
Thanks in advance!
Solved! Go to Solution.
If you look at the example, it's actually a URL-encoded payload with one JSON member.
Hi Sanford,
I have a same problem.
Is the API document incorrect?
My request payload
{
"channel": "List Import",
"folder": {
"id": 375,
"type": "Folder"
},
"name": "program-via-api",
"type": "Default"
}
What does it mean one JSON member?
How can i fix my Request payload?