Deprecated
Announced Jun 1, 2020: APIs under the ECom.Licenses scope are scheduled for End of Life effective December 1, 2020. At that time this API will no longer be available. Please see ECom.Shop (e.g. Add Trial Module) for the next generation Ecommerce API functionality.
POST /service/api/ecom/licenses/{keycode}/addTrialModule
Adds a trial module (e.g. DNS Protection or WSAT) to a given keycode.
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
keycode |
The keycode for which the trial module should be added. |
string |
Required |
URI Sample(s)
POST
|
https://unityapi.webrootcloudav.com/service/api/ecom/licenses/B2FA0F3045FF4436A7DE/addTrialModule
|
Body Parameters
AddTrialModuleRequestServiceModelName | Description | Type | Additional Information |
---|---|---|---|
Modules |
The trial modules (e.g. DNS Protection or WSAT) to allocate with this license. |
Collection of CreateTrialModuleRequestServiceModel_Module |
None. |
Sample Request
{ "Modules": [ { "Code": "DNS", "Seats": 50 }, { "Code": "WSAT", "Seats": 50 } ] }
<AddTrialModuleRequestServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.ECom.Models"> <Modules> <CreateTrialModuleRequestServiceModel_Module> <Code>DNS</Code> <Seats>50</Seats> </CreateTrialModuleRequestServiceModel_Module> <CreateTrialModuleRequestServiceModel_Module> <Code>WSAT</Code> <Seats>50</Seats> </CreateTrialModuleRequestServiceModel_Module> </Modules> </AddTrialModuleRequestServiceModel>
Response Information
Resource Description
Details about the added trial module.
AddTrialModuleResponseServiceModelName | Description | Type | Additional Information |
---|---|---|---|
License |
The License element. |
CreateTrialModuleResponseServiceModel_License |
None. |
Sample Response
{ "License": { "LicenseId": 153592122, "Keycode": "7F163F4DA3E445F19252", "ExternalAccountId": "MyAccountRef2783", "Seats": 50, "SeatsUsed": 0, "StorageGb": 50.0, "StartDate": "2024-12-21T17:04:44.1834128Z", "ExpirationDate": "2025-12-21T17:04:44.1834128Z", "Modules": [ { "Seats": 50, "Name": "DNS Protection", "Code": "DNS", "LicenseType": "trial", "StartDate": "2024-12-21T17:04:44.1834128Z", "ExpirationDate": "2025-12-21T17:04:44.1834128Z" }, { "Seats": 50, "Name": "Webroot Security Awareness Training", "Code": "WSAT", "LicenseType": "trial", "StartDate": "2024-12-21T17:04:44.1834128Z", "ExpirationDate": "2025-12-21T17:04:44.1834128Z" } ] } }
<AddTrialModuleResponseServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.ECom.Models"> <License> <ExpirationDate>2025-12-21T17:04:44.1834128Z</ExpirationDate> <ExternalAccountId>MyAccountRef2783</ExternalAccountId> <Keycode>7F163F4DA3E445F19252</Keycode> <LicenseId>153592122</LicenseId> <Modules> <CreateTrialModuleResponseServiceModel_Module> <Code>DNS</Code> <ExpirationDate>2025-12-21T17:04:44.1834128Z</ExpirationDate> <LicenseType>trial</LicenseType> <Name>DNS Protection</Name> <Seats>50</Seats> <StartDate>2024-12-21T17:04:44.1834128Z</StartDate> </CreateTrialModuleResponseServiceModel_Module> <CreateTrialModuleResponseServiceModel_Module> <Code>WSAT</Code> <ExpirationDate>2025-12-21T17:04:44.1834128Z</ExpirationDate> <LicenseType>trial</LicenseType> <Name>Webroot Security Awareness Training</Name> <Seats>50</Seats> <StartDate>2024-12-21T17:04:44.1834128Z</StartDate> </CreateTrialModuleResponseServiceModel_Module> </Modules> <Seats>50</Seats> <SeatsUsed>0</SeatsUsed> <StartDate>2024-12-21T17:04:44.1834128Z</StartDate> <StorageGb>50</StorageGb> </License> </AddTrialModuleResponseServiceModel>