I’d like to use the API to replace some PDF files every day, I managed to do everything in postman, but now I would like to implement that into a powershell script.
The call for the access_token is already the first problem. In postman this call only works if I go to the authorization tab and then Get New Access Token (Relevant post: Postman API Tutorial -> 404 with access_token)
Doing the same thing in Powershell leaves me again with a 404 error:
With an access_token that I got from Postman, I was able to some basic calls without any issues. The second Problem is the part when I try to upload an actual file. Again, no problem in postman. How would powershell syntax look like for this? This is what I currently have:
“File type not allowed”
Is there any way of solving these issues? Should I be using a different language with postman export functionality? Is there a way of exporting from postman through the HTTP thing and using that somehow in powershell?
Thanks a lot for your help!