SOLVED

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

Go to solution
Anonymous
Not applicable

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

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!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

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

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

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

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

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

Anonymous
Not applicable

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

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?