# How to enable nDVR in Wowza Streaming Engine through rest api

**URL:** <https://community.wowza.com/t/how-to-enable-ndvr-in-wowza-streaming-engine-through-rest-api/52881>\
**Category:** Wowza Developer Dojo\
**Created:** [February 21, 2019, 7:59am UTC](https://community.wowza.com/t/how-to-enable-ndvr-in-wowza-streaming-engine-through-rest-api/52881 "2019-02-21T07:59:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fahad\_Rehman](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@Fahad\_Rehman](https://community.wowza.com/u/Fahad_Rehman)\
**Post date:** [February 21, 2019, 7:59am UTC](https://community.wowza.com/t/how-to-enable-ndvr-in-wowza-streaming-engine-through-rest-api/52881/1 "2019-02-21T07:59:38Z")

</div>

I wanted to enable the nDVR feature of WOWZA through Rest API but I am not able to find any API samples

what I wanted to know

1. What is endpoint URL where Wowza accepts this parameter

2. what is the name of the property in which I can send enable nDVR parameter

3. currently we are using this base API /v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/newapplication

does Wowza accepts this parameters on this API End Point

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [February 21, 2019, 8:20am UTC](https://community.wowza.com/t/how-to-enable-ndvr-in-wowza-streaming-engine-through-rest-api/52881/2 "2019-02-21T08:20:46Z")

</div>

Hello @Fahad Rehman,

Check out [https://www.wowza.com/docs/wowza-streaming-engine-rest-api](https://www.wowza.com/docs/wowza-streaming-engine-rest-api) for a full overview of the REST API capabilities.

If you want to enable nDVR when you create a new application, you would POST to

```auto
/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}

```

If you want to enable nDVR on an existing application, you would use the same URL, but with the PUT method. Send a JSON object as POST / PUT data, where the JSON contains a “dvrConfig” property that is a child object

```auto
{
   dvrConfig: {
    windowDuration (integer),
    dvrMediaCacheEnabled (boolean),
    dvrEnable (boolean),
    startRecordingOnStartup (boolean),
    serverName (string),
    store (string),
    version (string),
    recorders (string),
    dvrOnlyStreaming (boolean),
    httpRandomizeMediaName (boolean),
    licenseType (string),
    dvrEncryptionSharedSecret (string),
    inUse (boolean),
    archiveStrategy (string),
    storageDir (string),
    saveFieldList (array[string], optional)
  }
}

```

Use the Swagger API reference for a better overview
