From 42be2b1e1bdbd6b9e58189f9133d7fdf40262c22 Mon Sep 17 00:00:00 2001 From: Jerry Workman Date: Tue, 7 Feb 2017 02:05:11 -0500 Subject: [PATCH] fix error in switch/turn_on example (#1988) Corrected CURL bash command ( thanks to David): '$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \ -H "Content-Type: application/json" \ -d '{"entity_id": "switch.christmas_lights", "state": "on"}' \ http://localhost:8123/api/services/switch/turn_on' --- source/developers/rest_api.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/developers/rest_api.markdown b/source/developers/rest_api.markdown index 23f5a2e4c8b..27b4392e1a7 100644 --- a/source/developers/rest_api.markdown +++ b/source/developers/rest_api.markdown @@ -418,7 +418,7 @@ Sample `curl` command: ```bash $ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \ -H "Content-Type: application/json" \ - -d '{"entity_id": "switch.christmas_lights", "state": "on"}' \ + -d '{"entity_id": "switch.christmas_lights"}' \ http://localhost:8123/api/services/switch/turn_on ```