FlexHoursRegistration

FlexHoursRegistration_GetFlexHourRegistration

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 + "/flex-hours?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

FlexHoursRegistration_InsertFlexHourRegistrationAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
employeeUid
required
string <uuid>
date
required
string <date-time>
description
string
status
integer <int32>
Enum: 0 1 2 3 4
type
integer <int32>
Enum: 1 2
timeFrom
required
string <date-time>
timeTo
required
string <date-time>
totalHours
number <double> >= 0

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

FlexHoursRegistration_DeleteFlexHourRegistrationsAsync

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.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/flex-hours?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_RejectFlexHoursRegistrationsAsync

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 + "/flex-hours/reject?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_ApproveFlexHoursRegistrationsAsync

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 + "/flex-hours/approve?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_PendingFlexHoursRegistrationsAsync

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 + "/flex-hours/pending?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_ManuallyArchiveFlexHourRegistrationsAsync

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 + "/flex-hours/manuallyarchive?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_DeleteFlexHourRegistrationAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
flexHourRegistrationUid
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 FlexHourRegistrationUid = "YOUR_flexHourRegistrationUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/flex-hours/" + FlexHourRegistrationUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_UpdateFlexHourRegistrationAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
flexHourRegistrationUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
employeeUid
required
string <uuid>
date
required
string <date-time>
description
string
status
integer <int32>
Enum: 0 1 2 3 4
type
integer <int32>
Enum: 1 2
timeFrom
required
string <date-time>
timeTo
required
string <date-time>
totalHours
number <double> >= 0

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

FlexHoursRegistration_RejectFlexHourRegistration

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
flexHourRegistrationUid
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 FlexHourRegistrationUid = "YOUR_flexHourRegistrationUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/flex-hours/" + FlexHourRegistrationUid + "/reject?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_ApproveFlexHourRegistration

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
flexHourRegistrationUid
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 FlexHourRegistrationUid = "YOUR_flexHourRegistrationUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/flex-hours/" + FlexHourRegistrationUid + "/approve?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_PendingFlexHourRegistration

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
flexHourRegistrationUid
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 FlexHourRegistrationUid = "YOUR_flexHourRegistrationUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/flex-hours/" + FlexHourRegistrationUid + "/pending?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

FlexHoursRegistration_ManuallyArchiveFlexHourRegistration

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
flexHourRegistrationUid
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 FlexHourRegistrationUid = "YOUR_flexHourRegistrationUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/flex-hours/" + FlexHourRegistrationUid + "/manuallyarchive?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}