diff --git a/Configuration.md b/Configuration.md index 0436b93..5d891e5 100644 --- a/Configuration.md +++ b/Configuration.md @@ -56,7 +56,11 @@ python -m platypush Send requests: ```shell -curl -XPOST -d "token=YOUR_TOKEN" -d 'msg={"type":"request","target":"volta","action":"shell.exec", "args": {"cmd":"echo ping"}}' http://localhost:8008 | jq +curl -XPOST \ + -H "Content-Type: application/json" \ + -H "X-Token: YOUR_TOKEN" \ + -d '{"type":"request","target":"your_hostname","action":"shell.exec", "args": {"cmd":"echo ping"}}' \ + http://localhost:8008/execute ``` ```json