Search code examples
restcurlpostmanlinkedin-api

LinkedIn v2 API: How can upload an image using ugcPosts API?


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.


Solution

  • 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.