Ok, I understand. to solve my problem I'm trying to do a script that cancels all the streaming connections and the last recording, after a few seconds recreates the same recording. I can successfully disconnect clients(kodi and vlc) and delete the recording. The problem is that I can't create a post API recording, I always get a 400 error.
Which are the minimum parameters to send via post API to create a recording?
My example:
curl -X POST "http://localhost:9981/api/dvr/entry/create" \
-u user:pass \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"start": $START, # Unix Timestamp format
"stop": $STOP,
"channelname": "Run Time Series (ES)",
"uuid" : "f2941280b0d0bbdf77256330d4db1c5b",
"title": {"spa": "my title"},
"config_name": "", #default it's empty string
}'