@@ -1205,7 +1205,7 @@ hull:
12051205 if ($overwriteExisting)
12061206 {
12071207 $this.WriteLog("**** '$entityType' entry '$identifier' already exists, hence PUTing instead of POSTing to update entity")
1208- $this.PutEntity($uriPut, $content, $putQueryParams, $auth, $contentType, $headers)
1208+ $this.PutEntity($uriPut, $identifier, $ content, $putQueryParams, $auth, $contentType, $headers)
12091209 $lastMethod = "PUT"
12101210 $lastUri = $uriPut
12111211 }
@@ -1220,7 +1220,7 @@ hull:
12201220 if ($putInsteadOfPost)
12211221 {
12221222 $this.WriteLog("**** PUTting '$entityType' entry '$identifier' to create it since 'putInsteadOfPost' is set to true")
1223- $this.PutEntity($uriPut, $content, $putQueryParams, $auth, $contentType, $headers)
1223+ $this.PutEntity($uriPut, $identifier, $ content, $putQueryParams, $auth, $contentType, $headers)
12241224 $lastMethod = "PUT"
12251225 $lastUri = $uriPut
12261226 }
@@ -1253,7 +1253,7 @@ hull:
12531253 }
12541254
12551255 # Put an entity
1256- hidden [PSCustomObject] PutEntity([string] $putUrl, [string] $json, [PSCustomObject] $putQueryParams, [PSCustomObject] $auth, [string] $contentType, [PSCustomObject] $headers)
1256+ hidden [PSCustomObject] PutEntity([string] $putUrl, [string] $identifier, [string] $ json, [PSCustomObject] $putQueryParams, [PSCustomObject] $auth, [string] $contentType, [PSCustomObject] $headers)
12571257 {
12581258 $url = $this.AppendQueryParamsToUri($putUrl, $putQueryParams, $identifier, $false)
12591259 return $this.InvokeWebRequest($url, "PUT", $json, $headers)
0 commit comments