diff --git a/README.md b/README.md index 15dc114d9d303e37dc5ac046ff4c53a5c54620fe..0e319ec755286ce82fe14ab6be759f1020ce3414 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,12 @@ Slash command to record completed tasks as WordPress posts ## Usage: -1. Make a POST request to `/log` with a POST body that contains the item to record - -For example: +1. Make a POST request to `/log` with a JSON POST body that contains the key `text` with the item to record. For example: ``` -curl -X "POST" "http://localhost:9001/log" \ - -d "I wrote a a thing!" +curl -X "POST" "http://127.0.0.1:9001/log" \ + -H "Content-Type: application/json; charset=utf-8" \ + -d $'{ + "text": "I did a thing" +}' ```