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.
does the API User have that permission?
Ask Support?
As documented, it should. If shouldn't, the user would've received a 403 response, not 200 OK.
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
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.
"..it always returns 200 OK with an empty body."
"..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.
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