I working on an API Post (to change the state of a battery) but I’m not sure how to write the YAML code in the Rest Command (I’ve got the header info sorted like API key and URL), but I’m not sure of the syntax in YAML for the multiple parameter settings. I’ve pasted below the code from the API documentation on what the request body should contain, I am trying to work out of to get this into my YAML code. I think I use the Payload term. Any tips appreciated.
{
"stateOverrides": [
{
"start": "2020-07-12 00:01:00",
"end": "2020-07-12 00:02:00",
"state": "force-charge"
}
]
}