Statistics

Statistics_GetStatisticsReportsPerCompanyAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/reports?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Statistics_GenerateStatisticsReport

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
year
required
integer <int32>
quarter
integer <int32>
sendToDst
boolean
reportType
integer <int32>
Enum: 1 2

Responses

Request samples

Content type
{
}

Statistics_GetStatisticsSettingsPerCompanyAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/settings?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Statistics_UpdatetatisticsSettingsPerCompanyAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
reportPeriod
integer <int32>
Enum: 0 1 2 3
reportAbsenceStatistics
boolean
employeeUids
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

Statistics_GetStatisticsEmployeesPerCompanyAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/employees?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Statistics_BulkUpdateStatisticsEmployees

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
employeeUids
Array of strings <uuid>
employmentRequipmentType
integer <int32>
Enum: 1 2
employmentStartDate
string <date-time>
employmentTermsType
integer <int32>
Enum: 1 2 3
employmentTermsStartDate
string <date-time>
workFunctionCode
integer <int32>
workFunctionDate
string <date-time>
jobStatusType
integer <int32>
Enum: 1 3 5 9
jobStatusDate
string <date-time>
normalHoursPerWeek
number <double>
compensationType
integer <int32>
Enum: 1 2 3 4 5 81 82 83 84 91 92
normalHoursStartDate
string <date-time>
compensationStartDate
string <date-time>

Responses

Request samples

Content type
{
}

Statistics_GetStatisticsReportLocationAsyncAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
reportUid
required
string <uuid>
format
required
integer <int32>
Enum: 1 2
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var ReportUid = "YOUR_reportUid_PARAMETER";
      var Format = "YOUR_format_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/reports/" + ReportUid + "/" + Format + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{ }

Statistics_GetStatisticsEmployeeHistoryDtoAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
type
required
string
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var EmployeeUid = "YOUR_employeeUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/employees/" + EmployeeUid + "/history?type=string&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

Statistics_InsertStatisticsEmployeeHistoryAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
object (Zalary.Models.Statistics.StatisticsEmployeeHistoryType)
value
string
startDate
string <date-time>

Responses

Request samples

Content type
{
}

Statistics_SendReportAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
reportUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var ReportUid = "YOUR_reportUid_PARAMETER";
      var request = await client.PostAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/reports/" + ReportUid + "?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Statistics_DeleteReportAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
reportUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var ReportUid = "YOUR_reportUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/reports/" + ReportUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Statistics_BulkUpdateStatisticsEmployees

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
Array ()
string <uuid>

Responses

Request samples

Content type
[
]

Statistics_BulkUpdateStatisticsEmployees

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/employees/reset-all?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Statistics_UpdateStatisticsEmployee

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
employmentRequipmentType
integer <int32>
Enum: 1 2
employmentStartDate
string <date-time>
employmentTermsType
integer <int32>
Enum: 1 2 3
employmentTermsStartDate
string <date-time>
workFunctionCode
integer <int32>
workFunctionDate
string <date-time>
jobStatusType
integer <int32>
Enum: 1 3 5 9
jobStatusDate
string <date-time>
normalHoursPerWeek
number <double>
compensationType
integer <int32>
Enum: 1 2 3 4 5 81 82 83 84 91 92
normalHoursStartDate
string <date-time>
compensationStartDate
string <date-time>

Responses

Request samples

Content type
{
}

Statistics_RemoveIpTypeStatisticsEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
string

Responses

Request samples

Content type
"string"

Response samples

Content type
{
}

Statistics_DeleteStatisticsEmployeeHistoryAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
statisticsEmployeeHistoryUid
required
string <uuid>
query Parameters
api-version
string

Responses

Request samples

using System;
using System.Net.Http;
using System.Threading.Tasks;

public class Program
{
  public static async Task Main(string[] args)
  {
    using (var client = new HttpClient())
    {
      client.DefaultRequestHeaders.Add("Authorization", "Bearer <YOUR_TOKEN_HERE>");
      var CompanyUid = "YOUR_companyUid_PARAMETER";
      var EmployeeUid = "YOUR_employeeUid_PARAMETER";
      var StatisticsEmployeeHistoryUid = "YOUR_statisticsEmployeeHistoryUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/statistics/employees/" + EmployeeUid + "/history/" + StatisticsEmployeeHistoryUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Statistics_UpdateStatisticsEmployeeHistoryAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
statisticsEmployeeHistoryUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
value
string
startDate
string <date-time>

Responses

Request samples

Content type
{
}