• Ayushi_Tiwari
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hello everyone,

I am trying to upload a pdf file to third party server from apex rest POST callout, and getting [Status=Unauthorized, StatusCode=401]. This is working fine in postman with the same session id and endpoint URL But not working in apex. 
The pdf file needs to be set as a body for the callout, how can I achieve this?