CompanyAbsenceType

CompanyAbsenceType_GetCompanyAbsenceTypeDetailsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
absenceTypeUid
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 AbsenceTypeUid = "YOUR_absenceTypeUid_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/absence-type/" + AbsenceTypeUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyAbsenceType_UpdateCompanyAbsenceTypeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
absenceTypeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 50 ] characters
number
required
string [ 0 .. 50 ] characters
absenceType
required
integer <int32>
Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
isSharedToAll
boolean
hasLimitedAccess
boolean
employees
required
Array of strings <uuid>
departments
required
Array of strings <uuid>

Responses

Request samples

Content type
{
}

CompanyAbsenceType_DeleteCompanyAbsenceTypeAsync

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

      Console.WriteLine(response);
    }
  }
}

CompanyAbsenceType_GetCompanyDefaultAbsenceTypesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
isFilter
boolean
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 + "/absence-type?isFilter=true&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

CompanyAbsenceType_GetCompanySystemAndCustomAbsenceTypesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
skip
integer <int32>
take
integer <int32>
searchPhrase
string
absenceTypes
Array of integers <int32>
Items Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
sortBy
integer <int32>
Enum: 0 1

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

CompanyAbsenceType_GetCompanyAbsenceTypesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
isFilter
boolean
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 + "/absence-type/all?isFilter=true&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

CompanyAbsenceType_GetEmployeeAbsenceTypesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
isFilter
boolean
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 + "/absence-type/employees/" + EmployeeUid + "?isFilter=true&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

CompanyAbsenceType_AddCompanyAbsenceTypeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 50 ] characters
number
required
string [ 0 .. 50 ] characters
absenceType
required
integer <int32>
Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
isSharedToAll
boolean
hasLimitedAccess
boolean
employees
required
Array of strings <uuid>
departments
required
Array of strings <uuid>

Responses

Request samples

Content type
{
}

CompanyAbsenceType_BulkDeleteCompanyAbsenceTypesAsync

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

Responses

Request samples

Content type
[
]