updating value in JSON /Rest-api (Powershell) : I want to update values in my JSON/Rest-api, but I can't PATCH the new values in rest-api. I saved the new values in csv-file and I converted this file to JSON to patch the new values in Rest-api


    $Authorization = "Bearer API-KEY"
    $Accept = "application/json"
    $Content = "application/json"
    $Uri = "URL"
    
    
    $getTapes = Invoke-RestMethod -Method PATCH -ContentType $content -Uri $Uri -Headers @{'Authorization' = $Authorization}
    
    import-csv "C:\123\test.txt" | ConvertTo-Json | Set-Content -Path $getTapes
