Receiving 701 "folder cannot be null" response for create program endpoint | Community
Skip to main content
February 11, 2016
Solved

Receiving 701 "folder cannot be null" response for create program endpoint

  • February 11, 2016
  • 1 reply
  • 2828 views

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!

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 SanfordWhiteman

If you look at the example, it's actually a URL-encoded payload with one JSON member.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 11, 2016

If you look at the example, it's actually a URL-encoded payload with one JSON member.

September 14, 2016

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?