From 6d228935013388556dbea5ab06addd6757751b45 Mon Sep 17 00:00:00 2001 From: James Marsh Date: Tue, 6 Mar 2018 21:56:17 +0000 Subject: [PATCH] Add header parameter to rest_command documentation. (#4747) --- source/_components/rest_command.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_components/rest_command.markdown b/source/_components/rest_command.markdown index c01e8ce94ab..e42610fef55 100644 --- a/source/_components/rest_command.markdown +++ b/source/_components/rest_command.markdown @@ -2,7 +2,7 @@ layout: page title: "RESTful Command" description: "Instructions how to integrate REST commands into Home Assistant." -date: 2016-12-27 00:00 +date: 2018-02-24 00:00 sidebar: true comments: false sharing: true @@ -32,6 +32,7 @@ Configuration variables: - **[service_name]** (*Required*): The name used to expose the service. E.g., in the above example, it would be `rest_command.example_request`. - **url** (*Required*): The URL (support template) for sending request. - **method** (*Optional*): HTTP method to use (`get`, `post`, `put`, or `delete`). Defaults to `get`. + - **headers** (*Optional*): The headers for the requests. - **payload** (*Optional*): A string/template to send with request. - **username** (*Optional*): The username for HTTP authentication. - **password** (*Optional*): The password for HTTP authentication.