This API is used to create Stream leases for LASP nodes. These leases are used to validate requests to stream Ultraviolet content.
An Ultraviolet Account is permitted a maximum of 12 concurrent, active Sreams. Streams automatically expire after 6 hours and can be renewed for a maximum of 24 hours using the StreamRenew()
API.
[BaseURL]/Account/{AccountID}/Stream
POST
dece:Stream
Stream/StreamClientNickname
Optional nickname for the stream client
Authorization: SAML2 assertion=[Assertion]
HTTP 201
Location: [BaseURL]/Account/{AccountID}/Stream/{StreamHandleID}
The following example will create a new Stream lease for a given Account and RightsTokenID.
POST /rest/2015/02/Account/urn:dece:accountid:org:dece:16EBFA93BAC64DBD875336ED4B6D3CC9/Stream HTTP/1.1
Host: api.uvvu.com
Accept: application/xml
Authorization: SAML2 assertion=[Assertion]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Stream xmlns="http://www.decellc.org/schema/2015/03/coordinator">
<RequestingUserID>urn:dece:userid:org:dece:16EBFA93BAC64DBD875336ED4B6D3CC9</RequestingUserID>
<RightsTokenID>urn:dece:rightstokenid:org:dece:22F5178A987D4710AFFB8EA28895A174</RightsTokenID>
</Stream>
HTTP/1.1 200
Date: [Date]
Location: https://api.uvvu.com/rest/2015/02/Account/urn:dece:accountid:org:dece:16EBFA93BAC64DBD875336ED4B6D3CC9/Stream/urn:dece:streamhandleid:org:dece:22F5178A987D4710AFFB8EA28895A174
X-transaction-info: [TransactionInfo]