Forum Discussion
Hudson1998
4 years agoOccasional Visitor
Multipart/form-data does work when adding as content type. The problem I had here is the API needed some parameters to accept raw content, then I was able to use -InFile \path\to\file and upload using Invoke-RestMethod subway gift card balance
- kgrandy4 years agoNew Contributor
I was able to upload via PowerShell using this code:
$Test = Invoke-RestMethod -uri "http://localhost:1880/1/suites" -ContentType "application/zip" -Method Post -Infile C:\tests\api_tests\apiTest.zip
now we are having issues with authentication... can I just wrap that into the header?
Related Content
- 2 years ago
- 7 years ago