2024-06-19, 02:29 PM
Thanks for your reply. It looks like I misunderstood the endpoint capabilities. Based on your advice, I’m still having trouble:
The ControllingUserId value was copied from UserId in Sessions. Since I found no way to describe this, I’m not sure if it’s correct.
Here is the response I received:
Thanks again.
Code:
curl -X POST 'http://192.168.8.189:8096/Sessions/a3ae737dd0cf133d8bc7a337c890xxxx/Command' -H 'Authorization: MediaBrowser Token="d27a9860d748492a8a6ea84d4159xxxx"' -H 'accept: application/json' --insecure -d '{"Name": "SetRepeatNone", "ControllingUserId": "68b3fbf4c76942e9aed2af49431exxxx", "Arguments": {"RepeatMode": "RepeatNone"}}' | jq .
The ControllingUserId value was copied from UserId in Sessions. Since I found no way to describe this, I’m not sure if it’s correct.
Here is the response I received:
Code:
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.13",
"title": "Unsupported Media Type",
"status": 415,
"traceId": "00-80e5258748cf0ed227f682f591b85157-8eeeeae371f487a8-00"
}
Thanks again.