GET /service/api/console/gsm/{gsmKey}/sites/{siteId}/wsat/campaigns/training/activity
 ?startDate={startDate}
 &endDate={endDate}

Returns information on activity seen for Webroot Security Awareness Training (WSAT) training campaigns associated to a given site.

NOTE: The startDate cannot be earlier than one year ago, and the timespan between startDate and endDate must not exceed 90 days.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

The GSM console keycode.

string

Required

siteId

The GSM site identifier.

string

Required

startDate

If specified, returns activity information starting from the given date. If omitted, defaults to 'now' minus 30 Days.

date

None.

endDate

If specified, returns activity information ending at the given date. If omitted, defaults to 'now'.

date

None.

Body Parameters

None.

Response Information

Resource Description

User activity information within the specified dates for matching training campaigns.

GetWSATTrainingActivityResponseModel
NameDescriptionTypeAdditional Information
CampaignType

The type of the campaign (i.e. Training).

string

None.

StartDate

Start date for returned user activity information. Campaign activity after (or at) this date is contained in the response.

date

None.

EndDate

End date for returned user activity information. Campaign activity before (or at) this date is contained in the response.

date

None.

Campaigns

The list of matching campaigns for which activity was seen within the specified dates.

Collection of GetWSATTrainingActivityResponseModel_Campaign

None.

Sample Response

{
  "CampaignType": "Training",
  "StartDate": "2019-06-19T03:39:16.5397359Z",
  "EndDate": "2019-07-19T03:39:16.5397359Z",
  "Campaigns": [
    {
      "SiteId": "090c379d-fad7-4bbe-ad36-121ff8aa5f6a",
      "SiteName": "The WSAT Site",
      "CampaignName": "Campaign Name 1",
      "LaunchDate": "2019-07-17T03:39:16.5397359Z",
      "TotalUsers": 2,
      "TotalComplete": 2,
      "TargetUsers": [
        {
          "Email": "email1@domain.com",
          "Complete": true
        },
        {
          "Email": "email2@domain.com",
          "Complete": true
        }
      ]
    },
    {
      "SiteId": "96c32c79-c8b0-4bc8-b016-8ba162a49c3e",
      "SiteName": "The WSAT Site",
      "CampaignName": "Campaign Name 2",
      "LaunchDate": "2019-07-15T03:39:16.5397359Z",
      "TotalUsers": 2,
      "TotalComplete": 2,
      "TargetUsers": [
        {
          "Email": "email2@domain.com",
          "Complete": true
        },
        {
          "Email": "email4@domain.com",
          "Complete": true
        }
      ]
    }
  ]
}                    
<GetWSATTrainingActivityResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models.WSATReporting">
  <CampaignType>Training</CampaignType>
  <Campaigns>
    <GetWSATTrainingActivityResponseModel_Campaign>
      <CampaignName>Campaign Name 1</CampaignName>
      <LaunchDate>2019-07-17T03:39:16.5397359Z</LaunchDate>
      <SiteId>090c379d-fad7-4bbe-ad36-121ff8aa5f6a</SiteId>
      <SiteName>The WSAT Site</SiteName>
      <TargetUsers>
        <GetWSATTrainingActivityResponseModel_CampaignTargetUser>
          <Complete>true</Complete>
          <Email>email1@domain.com</Email>
        </GetWSATTrainingActivityResponseModel_CampaignTargetUser>
        <GetWSATTrainingActivityResponseModel_CampaignTargetUser>
          <Complete>true</Complete>
          <Email>email2@domain.com</Email>
        </GetWSATTrainingActivityResponseModel_CampaignTargetUser>
      </TargetUsers>
      <TotalComplete>2</TotalComplete>
      <TotalUsers>2</TotalUsers>
    </GetWSATTrainingActivityResponseModel_Campaign>
    <GetWSATTrainingActivityResponseModel_Campaign>
      <CampaignName>Campaign Name 2</CampaignName>
      <LaunchDate>2019-07-15T03:39:16.5397359Z</LaunchDate>
      <SiteId>96c32c79-c8b0-4bc8-b016-8ba162a49c3e</SiteId>
      <SiteName>The WSAT Site</SiteName>
      <TargetUsers>
        <GetWSATTrainingActivityResponseModel_CampaignTargetUser>
          <Complete>true</Complete>
          <Email>email2@domain.com</Email>
        </GetWSATTrainingActivityResponseModel_CampaignTargetUser>
        <GetWSATTrainingActivityResponseModel_CampaignTargetUser>
          <Complete>true</Complete>
          <Email>email4@domain.com</Email>
        </GetWSATTrainingActivityResponseModel_CampaignTargetUser>
      </TargetUsers>
      <TotalComplete>2</TotalComplete>
      <TotalUsers>2</TotalUsers>
    </GetWSATTrainingActivityResponseModel_Campaign>
  </Campaigns>
  <EndDate>2019-07-19T03:39:16.5397359Z</EndDate>
  <StartDate>2019-06-19T03:39:16.5397359Z</StartDate>
</GetWSATTrainingActivityResponseModel>