Skip to content

Commit e70e8b1

Browse files
cmsimikefabaff
authored andcommitted
Updated the docs for rest_command (home-assistant#2430)
* Updated the docs for rest_command * Added the optional content_type config value, used to specify the request content type. * Remove default content type of 'text/plain' Should default to current behavior - no header
1 parent 4015a67 commit e70e8b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/_components/rest_command.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Configuration variables:
3535
- **username** (*Optional*): The username for HTTP authentication.
3636
- **password** (*Optional*): The password for HTTP authentication.
3737
- **timeout** (*Optional*): Timeout for requests. Defaults to 10 seconds.
38+
- **content_type** (*Optional*): Content type for the request.
3839

3940
The commands can be dynamic, using templates to insert values of other entities. Service call support variables for template stuff.
4041

0 commit comments

Comments
 (0)