Hello @Fahad Rehman,
Check out 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
/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
{
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