Skip to content

Commit 239fff5

Browse files
committed
fix(rest): update body req example
1 parent edc3234 commit 239fff5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

messages/rest.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ Salesforce CLI defined this schema to be mimic Postman schemas; both share simil
6363
Here's a simple example of a JSON file that contains values for the request URL, method, and body:
6464

6565
{
66-
"url": "sobjects/Account/<Account ID>",
66+
"url": "services/data/v61.0/sobjects/Account/<Account ID>",
6767
"method": "PATCH",
68+
"headers": ["content-type:application/json"],
6869
"body" : {
6970
"mode": "raw",
7071
"raw": {
@@ -81,4 +82,4 @@ HTTP header in "key:value" format.
8182

8283
# flags.body.summary
8384

84-
File or content for the body of the HTTP request. Specify "-" to read from standard input or "" for an empty body. If passing a file, prefix the filename with '@'.
85+
File or content for the body of the HTTP request. Specify "-" to read from standard input or "" for an empty body. If passing a file, prefix the filename with '@'.

0 commit comments

Comments
 (0)