HTTP Request - Required part 'file' is missing

Hi!
I’m trying to post a pdf using the http request, however i get the error that the ‘file’ is missing, even tho i have it in the attachment with the link to the pdf. Is there anything I’m missing ?
In the 3rd picture you can see the code snippet from postman.
thanks!



@Kinga_s,

As per second screenshot, you are not using any authentication whereas Postman you are using the Bearer token.

Check this.

Thanks,
Ashok :slight_smile:

I have added the authorization in the header, the first line in the parameters

@Kinga_s,

Still you will have to select Authentication to your Authentication type instead on None. Like Auth 2.0 so something.

Thanks,
Ashok :slight_smile:

if i add the token and change the authentification to auth 2.0, i get the 401 error.

@Kinga_s,

In that case, check the API documentation where exactly ‘file’ is expected. is it in header, parameter, url etc.

Thanks,
Ashok :slight_smile: