# REST API endpoint to disconnect incoming stream is not working

**URL:** <https://community.wowza.com/t/rest-api-endpoint-to-disconnect-incoming-stream-is-not-working/47278>\
**Category:** Wowza Developer Dojo\
**Created:** [July 14, 2016, 3:48pm UTC](https://community.wowza.com/t/rest-api-endpoint-to-disconnect-incoming-stream-is-not-working/47278 "2016-07-14T15:48:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Reis](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@Gabriel\_Reis](https://community.wowza.com/u/Gabriel_Reis)\
**Post date:** [July 14, 2016, 3:48pm UTC](https://community.wowza.com/t/rest-api-endpoint-to-disconnect-incoming-stream-is-not-working/47278/1 "2016-07-14T15:48:07Z")

</div>

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

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

```

But it fails all the time with the following response:

```auto
{
  "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?

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [July 24, 2016, 12:40pm UTC](https://community.wowza.com/t/rest-api-endpoint-to-disconnect-incoming-stream-is-not-working/47278/2 "2016-07-24T12:40:13Z")

</div>

Please see my [response here](http://community.wowza.com/t/-/47276)

Regards,

salvadore
