Hello, I am attempting to kick off an export via the API and then retrieve its status as described here: https://developers.trello.com/docs/automating-exports
I am able to kick off the export successfully and retrieve the export ID. However, when I attempt to check the status of the export, I receive the following exception:
My PowerShell code is below. Can you spot what I’m doing wrong?
#Call Trello Rest API to initiate export of all team boards to a zip file $exportJson = Invoke-WebRequest -method POST "https://api.trello.com/1/organizations/$teamID/exports?attachments=false&key=$key&token=$token" #Retrieve Export ID $export = $exportJson.Content | ConvertFrom-Json $exportID = $export.id Write-Output "Export ID:$exportID" #Retrieve Export Status $exportStatus = Invoke-WebRequest "https://trello.com/1/organizations/$teamID/exports/$exportID?key=$key&token=$token" return $exportStatus