POST api/LoginStats

API Endpoint that will log user and machine information to the ECNStats.Usage table. Parameters must be provided in the body of the web request and in JSON format.

Request Information

URI Parameters

None.

Body Parameters

LoginStatsRequest
NameDescriptionTypeAdditional information
ActionId

integer

None.

OSVersion

string

None.

Location

string

None.

Lab

boolean

None.

LogonStartTime

date

None.

LogonEndTime

date

None.

ScriptStartTime

date

None.

LogonType

string

None.

MachineName

string

None.

UserName

string

None.

UserSname

string

None.

Token

globally unique identifier

None.

MachineDomain

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionId": 1,
  "OSVersion": "sample string 2",
  "Location": "sample string 3",
  "Lab": true,
  "LogonStartTime": "2025-12-16T12:03:53.2758471-05:00",
  "LogonEndTime": "2025-12-16T12:03:53.2758471-05:00",
  "ScriptStartTime": "2025-12-16T12:03:53.2758471-05:00",
  "LogonType": "sample string 8",
  "MachineName": "sample string 9",
  "UserName": "sample string 10",
  "UserSname": "sample string 11",
  "Token": "8840d84f-ae94-4593-9b91-dd1882574884",
  "MachineDomain": "sample string 13"
}

application/xml, text/xml

Sample:
<LoginStatsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinAPI.Requests">
  <MachineDomain>sample string 13</MachineDomain>
  <Token>8840d84f-ae94-4593-9b91-dd1882574884</Token>
  <ActionId>1</ActionId>
  <Lab>true</Lab>
  <Location>sample string 3</Location>
  <LogonEndTime>2025-12-16T12:03:53.2758471-05:00</LogonEndTime>
  <LogonStartTime>2025-12-16T12:03:53.2758471-05:00</LogonStartTime>
  <LogonType>sample string 8</LogonType>
  <MachineName>sample string 9</MachineName>
  <OSVersion>sample string 2</OSVersion>
  <ScriptStartTime>2025-12-16T12:03:53.2758471-05:00</ScriptStartTime>
  <UserName>sample string 10</UserName>
  <UserSname>sample string 11</UserSname>
</LoginStatsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>