I’m trying to submit my zips using volt builder api. I’m on an powershell environment and when I run the command to upload the zip file I get an “Invoke-RestMethod : Not Acceptable”.
This result is that i miss any header or any data on the form is not correct.
Can you help me to find the correct way to send thi zip throught api.
$uri = "https://api.volt.build/v1/app"
$filePath = "C:\temp\xxxxxxxxxxxxx.zip"
$headers = @{
'authorization' = ('Bearer ' + $access_token)
}
$form = @{
platform = 'android'
app = @{
value = [System.IO.File]::OpenRead($filePath)
options = @{
contentType = "application/zip"
}
}
}
$response = Invoke-RestMethod -Uri $uri -Method Post -Headers $headers -Body $form
Write-Host $response