{
"name": "soundbar night mode",
"actions": [
{
"if": {
"between": {
"value": {
"time": {
"reference": "Now"
}
},
"start": {
"time": {
"reference": "Sunset"
}
},
"end": {
"time": {
"reference": "Sunrise"
}
}
},
"then": [
{
"command": {
"devices": [
"Device ID"
],
"commands": [
{
"component": "main",
"capability":"execute",
"command":"execute",
"arguments":[
"/sec/networkaudio/advancedaudio",
{
"x.com.samsung.networkaudio.nightmode":1
}
]
}
]
}
}
]
}
}
]
}
AxiosError: Request failed with status code 422: {"requestId":"639005837663611545","error":{"code":"ConstraintViolationError","message":"The request
is malformed.","details":[{"code":"BodyMalformedError","target":"Unknown target","message":"Malformed body on line 1:326","details":[]}]}}
Code: ERR_BAD_REQUEST
Referring to the article, I created a RULES API that operates night mode in the evening, but this error occurs when uploading using CLI. I don’t know what the problem is. I would appreciate it if you could tell me how to solve it.