POST /service/api/ecom/licenses/{licenseId}/addTrialModule

Adds a trial module (e.g. DNS Protection or WSAT) to a given license id.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
licenseId

The license id for which the trial module should be added.

integer

Required

Body Parameters

AddTrialModuleRequestServiceModel
NameDescriptionTypeAdditional 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.

AddTrialModuleResponseServiceModel
NameDescriptionTypeAdditional Information
License

The License element.

CreateTrialModuleResponseServiceModel_License

None.

Sample Response

{
  "License": {
    "LicenseId": 166724337,
    "Keycode": "59823055C699414BAC5D",
    "ExternalAccountId": "MyAccountRef3159",
    "Seats": 50,
    "SeatsUsed": 0,
    "StorageGb": 50.0,
    "StartDate": "2019-09-19T04:44:53.9668231Z",
    "ExpirationDate": "2020-09-19T04:44:53.9668231Z",
    "Modules": [
      {
        "Seats": 50,
        "Name": "DNS Protection",
        "Code": "DNS",
        "LicenseType": "trial",
        "StartDate": "2019-09-19T04:44:53.9668231Z",
        "ExpirationDate": "2020-09-19T04:44:53.9668231Z"
      },
      {
        "Seats": 50,
        "Name": "Webroot Security Awareness Training",
        "Code": "WSAT",
        "LicenseType": "trial",
        "StartDate": "2019-09-19T04:44:53.9668231Z",
        "ExpirationDate": "2020-09-19T04:44:53.9668231Z"
      }
    ]
  }
}                    
<AddTrialModuleResponseServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.ECom.Models">
  <License>
    <ExpirationDate>2020-09-19T04:44:53.9668231Z</ExpirationDate>
    <ExternalAccountId>MyAccountRef3159</ExternalAccountId>
    <Keycode>59823055C699414BAC5D</Keycode>
    <LicenseId>166724337</LicenseId>
    <Modules>
      <CreateTrialModuleResponseServiceModel_Module>
        <Code>DNS</Code>
        <ExpirationDate>2020-09-19T04:44:53.9668231Z</ExpirationDate>
        <LicenseType>trial</LicenseType>
        <Name>DNS Protection</Name>
        <Seats>50</Seats>
        <StartDate>2019-09-19T04:44:53.9668231Z</StartDate>
      </CreateTrialModuleResponseServiceModel_Module>
      <CreateTrialModuleResponseServiceModel_Module>
        <Code>WSAT</Code>
        <ExpirationDate>2020-09-19T04:44:53.9668231Z</ExpirationDate>
        <LicenseType>trial</LicenseType>
        <Name>Webroot Security Awareness Training</Name>
        <Seats>50</Seats>
        <StartDate>2019-09-19T04:44:53.9668231Z</StartDate>
      </CreateTrialModuleResponseServiceModel_Module>
    </Modules>
    <Seats>50</Seats>
    <SeatsUsed>0</SeatsUsed>
    <StartDate>2019-09-19T04:44:53.9668231Z</StartDate>
    <StorageGb>50</StorageGb>
  </License>
</AddTrialModuleResponseServiceModel>