# REST API - Restart applications

**URL:** <https://community.wowza.com/t/rest-api-restart-applications/699>\
**Category:** Wowza Developer Dojo\
**Created:** [August 20, 2015, 3:45pm UTC](https://community.wowza.com/t/rest-api-restart-applications/699 "2015-08-20T15:45:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [August 20, 2015, 3:45pm UTC](https://community.wowza.com/t/rest-api-restart-applications/699/1 "2015-08-20T15:45:08Z")

</div>

Hi there … is the REST API available only for version 4.2?

how can I restart an application on 4.0 or 4.1?

Thanks

---

<div class="post-metadata">

**Author:** ![Andrew\_Ramberg](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Andrew\_Ramberg](https://community.wowza.com/u/Andrew_Ramberg)\
**Post date:** [August 21, 2015, 2:49pm UTC](https://community.wowza.com/t/rest-api-restart-applications/699/2 "2015-08-21T14:49:16Z")

</div>

Hello,

The REST API is included with 4.2 whereas earlier 4.x versions required preview approval and installation. Information on [How To Access Documentation for WSE API.](https://www.wowza.com/docs/wowza-streaming-engine-rest-api)

The applications can be restarted individually using the following command:

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/)[APP-NAME]/actions/restart

More information on [restarting hosts with the JMX API](https://www.wowza.com/docs/how-to-set-up-a-command-line-interface-to-wowza-api-to-start-stop-vhost-using-jmx).

Best regards,

Andrew

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [February 23, 2016, 9:27am UTC](https://community.wowza.com/t/rest-api-restart-applications/699/3 "2016-02-23T09:27:06Z")

</div>

Hello

You will need to add the digest auth parameters if your server is configured to use them. If your Server.xml file contains the following under RESTInterface section:

```auto
<AuthenticationMethod>digest</AuthenticationMethod>

```

You will need to modify your request from just the -u parameter and add the following to your curl request:

```auto
curl --digest -u "user:pass" -X ...

```

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![George\_Guliman](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@George\_Guliman](https://community.wowza.com/u/George_Guliman)\
**Post date:** [February 23, 2016, 11:49am UTC](https://community.wowza.com/t/rest-api-restart-applications/699/4 "2016-02-23T11:49:21Z")

</div>

Hi

I am trying to restart the live application using the REST API call:

```auto
curl -X PUT -H 'Accept:application/json; charset=utf-8' -H "Content-type:application/json; charset=utf-8" -u "user:pass" http://185.105.4.170:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/actions/restart

```

The response I am getting is

```auto
{"message":"The request requires user authentication","wowzaServer":"4.3.0","code":"401","success":false}

```

I am using the same username and password as for login to Wowza Manager.

Can anyone tell me what am I doing wrong?

Thanks
