2 Replies Latest reply on Aug 13, 2015 3:54 PM by Kenny Elkington

    Create File REST API

      Hello

       

      I was just curious if anyone has used Marketo REST API to Create a File? It's under - Create a File » Marketo Developers.

       

      I have gone through the examples and trying to upload an Image file (PNG) via this API using Python (2.7). But no success! I am getting this error message -

       

      u'errors': [{u'message': u'name is mandatory', u'code': u'701'}, {u'message': u'file is mandatory', u'code': u'701'}

       

      The Java example uses boundary but I am trying to implement this in Python without any boundary. Hope that makes sense!

       

      The issue is somehow I am the "name" and "file" is not getting passed through even though I am sending them over. Looked up online and found useful hints but somehow nothing has worked so far .

       

      Any idea?

       

      On the side note - can someone confirm if the PHP example mentioned on that API page works?