Skip to content

In rest_command Docs, please explain why payload has to be a string #39022

Open
@HWiese1980

Description

@HWiese1980

Feedback

... and cannot be an object that's automatically encoded into, for example, a JSON string.

I am wondering about that right now. Why is this valid

...
  payload: '{ "something": "something" }'

whereas this is not

...
  payload:
    something: "something"

URL

https://www.home-assistant.io/integrations/rest_command/

Version

2025.5.1

Additional information

No response

Metadata

Metadata

Assignees

Labels

StaleThe PR had no activity for quite some time, and is marked as Staleintegration: rest_command

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions