1

I am working on posting image to linkedin using V2. I register an image using this end point https://api.linkedin.com/v2/assets?action=registerUpload as a result i get uploadUrl (end point to upload an image). The issue here that i don't know how to upload the image. In Linkedin Api doc they put curl command and i am not very familiar with that. I try with postman import --> Paste Raw textupload image api

But that don't show me really how to pass the image to upload. Any advice and suggestions will be greatly appreciated.

user2222
  • 444
  • 2
  • 8
  • 18

1 Answers1

1

Check out my answer on a very similar question: https://stackoverflow.com/a/54902863/7844946

I think for Postman you can simply select the file by going to Body -> Binary -> Choose File.

Ervin Kalemi
  • 569
  • 4
  • 14
  • thank you, did you get that problem {"serviceErrorCode"=>100, "message"=>"Field Value validation failed in REQUEST_BODY: Data Processing Exception while processing fields [/registerUploadRequest/recipes/relationshipType]", "status"=>403} when trying to register an image. I see that you're using ruby as me. – user2222 Feb 28 '19 at 10:08
  • I remember seeing this error once, but I don't remember whether I got that for registering a video or an image, nor how I solved it. I kept getting another exception that was eventually fixed by the LinkedIn team: https://stackoverflow.com/questions/54201879/bad-request-attempting-to-associate-a-ugc-with-an-asset-thats-not-owned-by-the – Ervin Kalemi Feb 28 '19 at 10:37