# 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/47276>\
**Category:** Wowza Streaming Engine\
**Created:** [July 14, 2016, 10:04am UTC](https://community.wowza.com/t/rest-api-endpoint-to-disconnect-incoming-stream-is-not-working/47276 "2016-07-14T10:04:13Z")\
**Posts on this page:** 1\
**Showing post:** 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, 10:04am UTC](https://community.wowza.com/t/rest-api-endpoint-to-disconnect-incoming-stream-is-not-working/47276/1 "2016-07-14T10:04:13Z")

</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”.

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

---

_[View the full topic](https://community.wowza.com/t/rest-api-endpoint-to-disconnect-incoming-stream-is-not-working/47276)._
