I am using the HTTP REST API to call using POST calling services, I have been able to use it already successfully. But having problem with this YAML, It works using the developer panel of the HA. But when I try to convert it to POSTMAN or Python code, the response is 400. Can anybody help me with coding this to python.
In developer tools the value of media_content_id is a string. In postman you are trying pass a JSON object as the value. Not the same thing and hence you’re getting an error.
Assuming your call in dev tools was successful the equivalent json to provide in postman would be this: