Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Santa's Achievements

  1. I'm trying to upload a file to an existing password via API, using Powershell. I try to get this code to work (from Passwordstates API Manual): # PowerShell Request $documentPath = "D:\Build-Specifications.txt" $uri = "https://passwordstate/api/document/password/123?DocumentName=<DocumentName>&DocumentDescription=SomeDescription" $result = Invoke-RestMethod -Uri $uri -Method Post -InFile $documentPath -ContentType 'multipart/form-data' -Header @{ "APIKey" = "<apikey>" } Write-Host $result But I get this error message: Invoke-RestMethod: "An error has occurred., Value cannot be null.\r\nParameter name: plainText, System.ArgumentNullException Any suggestions about what that can mean?
  • Create New...