title: How to create work item in VSO project using PowerShell
body: <p>How can I create new work item in Visual Studio Online project using rest API. Here is my expectation as described <a href="https://www.visualstudio.com/integrate/api/wit/work-items#Createaworkitem" rel="nofollow">here</a></p>
  
  <pre><code>$task = @{"op"="test task";"path"="/rev";"value"=1}
  $json = $task | ConvertTo-Json
  $response = Invoke-RestMethod -Uri $apihref/wit/workitems/$Task?api-version=1.0 -Body $json -headers $h -Method PATCH
  </code></pre>
  
  <p>but it generates error: <code>Invoke-RestMethod : The remote server returned an error: (404) Not Found.</code></p>