New create static list endpoint not working

Anonymous
Not applicable

New create static list endpoint not working

I stumbled upon this page today: http://developers.marketo.com/rest-api/assets/static-lists/#create_and_update

Apparently now we can create lists through rest api. However, every time I make a request to this endpoint, doesn't matter if it is correct or not, it always returns 200 OK with an empty body.

Is it still under development?

Thanks.

Tags (1)
7 REPLIES 7
Josh_Hill13
Level 10 - Champion Alumni

Re: New create static list endpoint not working

does the API User have that permission?

Ask Support?

Anonymous
Not applicable

Re: New create static list endpoint not working

As documented, it should. If shouldn't, the user would've received a 403 response, not 200 OK.

Jay_Jiang
Level 10

Re: New create static list endpoint not working

AFAIK if you've got the endpoint correct, Marketo APIs always return 200 OK. You need to look in the json body for "success":true or "success":false

SanfordWhiteman
Level 10 - Community Moderator

Re: New create static list endpoint not working

AFAIK if you've got the endpoint correct, Marketo APIs always return 200 OK. You need to look in the json body for "success":true or "success":false

It's more that Marketo will return 200 OK even if you don't have the resource URL correct. (That's in most cases; there are some resource types which are truly RESTful, so you'll get a 404 for a nonexistent resource, but more often you get a 200 and empty body if there's a typo in the URL).

So you're right that you definitely need to look at the response body.

Anonymous
Not applicable

Re: New create static list endpoint not working

"..it always returns 200 OK with an empty body."

SanfordWhiteman
Level 10 - Community Moderator

Re: New create static list endpoint not working

"..it always returns 200 OK with an empty body."

Yes, I was noting that the same result happens with endpoints that will never exist, not just ones that are under construction.

Steven_Vanderb3
Marketo Employee

Re: New create static list endpoint not working

This endpoint will be release as part of the Q2 release.  It should work at the end of next week.  Release Notes: Spring '18 - Marketo Docs - Product Documentation