EnableDisableDVR
Control of recording a DVR stream. The state is not saved. It is only used for temporary state changes, and after server reboot, it is reset to the initial state.
PUT /api/streams/{stream-uid}/enable/
Body | |||||||||
stream-uidoptional | uid | Unique stream identifier {@hint:uid} | |||||||
enablerequired | bool | Specifies what actions need to be taken with the DVR recording of the stream. | |||||||
tokenrequired | string | API request authorization token. See Mediaserver/Web API/Authorization/CreateApiToken |
Response | |||||||||
200 | Returns the UID of the stream. | ||||||||
JSON
| |||||||||
404 | Stream with such UID not found. | ||||||||
403 | Authorization error. Invalid or missing API access token. See Mediaserver/Web API/Authorization/CreateApiToken. |
Example | |||||||||
JSON
|