Wowza Community

Disconnect live broadcasting with API

Hello,

I am facing the same issue and I am using streaming engine version 4.7.6.

We are broadcasting live from the mobile device and I want to disconnect it using rest API.

Request:
curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-Type:application/json; charset=utf-8’ http://abc.com:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/incomingstreams/6l5gcca3mu2ziatyak6reahluhmxx6t0/actions/disconnectStream

Response:

{“success”:false,“message”:“The server has not found anything matching the request URI”,“wowzaServer”:“4.7.6”,“code”:“404”}

I am fetching stream name using API

http://abc.com:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances

Please help and let me know if any other way available to disconnect live broadcast(stream)

Thanks,

Ujjaval