PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}

Edits information for a site under a given GSM console.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

siteId

The site identifier.

string

Required

URI Sample(s)

PUT
https://unityapi.webrootcloudav.com/service/api/console/gsm/9A50-BC88-9CEC-4CF6-A9E6/sites/d203466c-12e0-4425-aae3-958faaeac4cc

Body Parameters

Additional information about which values should be modified for the site.

EditGSMSiteRequestModel
NameDescriptionTypeAdditional Information
SiteName

The name of the site.

string

None.

Seats

The number of seats for the site.

integer

None.

Comments

The description for the site. Maximum of 1000 characters is allowed.

string

None.

BillingCycle

Value specifying the billing cycle. Valid values are "Annually", "Quarterly", "Monthly", or "Weekly".

string

None.

BillingDate

Value indicating the billing date based on the specified billing cycle.

  • For "Annually" specify the desired month and day of the year in the format "MMM d" (e.g. "Aug 14")
  • For "Quarterly" specify the desired month of the quarter and the day in the format "MMM d" (e.g. "Jan 01"). Pass "Jan", "Feb", or "Mar" for the first, second, or third month in the quarter, and 1 to 28 for the desired day of the month. For example "Feb 15" indicates that the billing occurs on the 15th day in every second month of a quarter.
  • For "Monthly" just specify the desired day of the month (days 1 to 28 are allowed only)
  • For "Weekly" just specify the desired day of the week (from 1 for Monday to 7 for Sunday)

string

None.

GlobalPolicies

Value (true/false) indicating if global policies are enabled for the site.

boolean

None.

GlobalOverrides

Value (true/false) indicating if global overrides are enabled for the site.

boolean

None.

PolicyId

The policy identifier.

string

None.

Emails

Comma-separated list of e-mail addresses for report distribution. Maximum of 10 email addresses is allowed.

string

None.

Modules

The list of license modules to be changed for the site.

Collection of EditGSMSiteRequestModel_Module

None.

Sample Request

{
  "SiteName": "Renamed Test Site",
  "Seats": 50,
  "Comments": "Comment for renamed test site",
  "BillingCycle": "Monthly",
  "BillingDate": "1",
  "GlobalPolicies": true,
  "GlobalOverrides": false,
  "PolicyId": "72db0c11-f582-4dea-ae86-3456d4a725fc",
  "Emails": "test@webroot.com",
  "Modules": [
    {
      "Type": "DNSP",
      "LicenseType": "Trial",
      "Enable": true
    },
    {
      "Type": "WSAT",
      "LicenseType": "Trial",
      "Enable": true
    }
  ]
}                    
<EditGSMSiteRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <BillingCycle>Monthly</BillingCycle>
  <BillingDate>1</BillingDate>
  <Comments>Comment for renamed test site</Comments>
  <Emails>test@webroot.com</Emails>
  <GlobalOverrides>false</GlobalOverrides>
  <GlobalPolicies>true</GlobalPolicies>
  <Modules>
    <EditGSMSiteRequestModel_Module>
      <Enable>true</Enable>
      <LicenseType>Trial</LicenseType>
      <Type>DNSP</Type>
    </EditGSMSiteRequestModel_Module>
    <EditGSMSiteRequestModel_Module>
      <Enable>true</Enable>
      <LicenseType>Trial</LicenseType>
      <Type>WSAT</Type>
    </EditGSMSiteRequestModel_Module>
  </Modules>
  <PolicyId>72db0c11-f582-4dea-ae86-3456d4a725fc</PolicyId>
  <Seats>50</Seats>
  <SiteName>Renamed Test Site</SiteName>
</EditGSMSiteRequestModel>                    

Response Information

Resource Description

None. If successful, this API action does not return any data and the response status code will be 204 (No Content).