Skip to content

Commit f2ca9b8

Browse files
chwarrsdwheeler
andauthored
Copy edit Body parameter of Invoke-RestMethod (#12280)
* Copy edit Body parameter of Invoke-RestMethod The documentation for the `-Body` parameter of `Invoke-RestMethod` incorrectly uses "response" when it means "request". * Copy changes to all versions --------- Co-authored-by: Sean Wheeler <[email protected]>
1 parent 792058a commit f2ca9b8

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

reference/5.1/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ Specifies the body of the request. The body is the content of the request that f
184184
You can also pipe a body value to `Invoke-RestMethod`.
185185

186186
The **Body** parameter can be used to specify a list of query parameters or specify the content of
187-
the response.
187+
the .
188188

189+
request.
189190
When the input is a GET request, and the body is an IDictionary (typically, a hash table), the body
190191
is added to the URI as query parameters. For other request types (such as POST), the body is set as
191192
the value of the request body in the standard name=value format.

reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Specifies the body of the request. The body is the content of the request that f
408408
You can also pipe a body value to `Invoke-RestMethod`.
409409

410410
The **Body** parameter can be used to specify a list of query parameters or specify the content of
411-
the response. For query parameters, the cmdlet uses the **System.Net.WebUtility.UrlEncode** method
411+
the request. For query parameters, the cmdlet uses the **System.Net.WebUtility.UrlEncode** method
412412
method to encode the key-value pairs. For more information about encoding strings for URLs, see
413413
[the UrlEncode() method reference](xref:System.Net.WebUtility.UrlEncode*).
414414

reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Specifies the body of the request. The body is the content of the request that f
408408
You can also pipe a body value to `Invoke-RestMethod`.
409409

410410
The **Body** parameter can be used to specify a list of query parameters or specify the content of
411-
the response. For query parameters, the cmdlet uses the **System.Net.WebUtility.UrlEncode** method
411+
the request. For query parameters, the cmdlet uses the **System.Net.WebUtility.UrlEncode** method
412412
method to encode the key-value pairs. For more information about encoding strings for URLs, see
413413
[the UrlEncode() method reference](xref:System.Net.WebUtility.UrlEncode*).
414414

reference/7.6/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Specifies the body of the request. The body is the content of the request that f
408408
You can also pipe a body value to `Invoke-RestMethod`.
409409

410410
The **Body** parameter can be used to specify a list of query parameters or specify the content of
411-
the response. For query parameters, the cmdlet uses the **System.Net.WebUtility.UrlEncode** method
411+
the request. For query parameters, the cmdlet uses the **System.Net.WebUtility.UrlEncode** method
412412
method to encode the key-value pairs. For more information about encoding strings for URLs, see
413413
[the UrlEncode() method reference](xref:System.Net.WebUtility.UrlEncode*).
414414

0 commit comments

Comments
 (0)