2

I am following these instructions, but I keep getting the error

[{"message":"MediaType of ''multipart/form-data' is not supported by this resource","errorCode":"UNSUPPORTED_MEDIA_TYPE"}]

Any idea how to fix this ?

  • Can you post some code? Are you creating an Attachment or a Document – Caspar Harmer May 14 '15 at 21:21
  • The url for an Attachment is like: https:[instance].salesforce.com/services/data/v32.0/sobjects/Attachment/ – Caspar Harmer May 14 '15 at 21:26
  • 1
    You may find this handy: yuanmengblog.blogspot.co.nz/2014/01/… – Caspar Harmer May 14 '15 at 21:28
  • after a few trail & errors . I figured it out – Kumar Garapati May 15 '15 at 15:48
  • That linked helped me too. Thanks for posting it . Here is the updated Content-Type: multipart/form-data;boundary=boundary_string_1414605653846 – Kumar Garapati May 15 '15 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.