I'm trying to send a file to a wiki (it's in VSTS using git) through a REST api call in PowerShell.
What I have currently is:
Invoke-RestMethod -Method Put -Uri $uri -ContentType 'application/json' -headers $header
The error I get is:
Invoke-RestMethod : {"$id":"1","innerException":null,"message":"The page '/Wiki Page' specified in the add operation already exists in the wiki. Please specify a new page path."
I can't use post because the method is not accepted by the resource.