Wowza Community

REST API endpoint to disconnect incoming stream is not working

I am trying to disconnect an incoming stream through the following endpoint:

PUT /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/incomingstreams/{streamName}/actions/disconnectStream

But it fails all the time with the following response:

  "code": "404",
  "success": false,
  "message": "The server has not found anything matching the request URI",
  "wowzaServer": "4.4.1"

All the path params that I am using is correct: “/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/incomingstreams/35355-1468504027689/actions/disconnectStream”

The streaming server version is “Wowza Streaming Engine Pro 4 for Amazon EC2 4.4.1 build17882”.

The regular GET to “/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/definst/incomingstreams/35355-1468504027689” works fine.

Is there any configuration on the server that needs to be enabled to make it work?

Please see my response here