Absence

Absence_GetAbsenceDaysPerCompany

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Absence_CreateAbsence

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
uid
string <uuid>
employeeUid
required
string <uuid>
fromDate
required
string <date-time>
toDate
required
string <date-time>
absenceType
required
integer <int32>
Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12
note
string
days
number <double>
projectId
string [ 0 .. 50 ] characters
status
integer <int32>
Enum: 0 1 2 3 4
attachmentUids
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
"00000000-0000-0000-0000-000000000000"

Absence_AbsenceBulkDeleteAsync

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

      Console.WriteLine(response);
    }
  }
}

Absence_GetAbsenceAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Absence_UpdateAbsence

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
absenceUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
uid
string <uuid>
employeeUid
required
string <uuid>
fromDate
required
string <date-time>
toDate
required
string <date-time>
absenceType
required
integer <int32>
Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12
note
string
days
number <double>
projectId
string [ 0 .. 50 ] characters
status
integer <int32>
Enum: 0 1 2 3 4
attachmentUids
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Absence_DeleteAbsence

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

      Console.WriteLine(response);
    }
  }
}

Absence_GetCompanyAbsenceAttachmentLocationAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
absenceUid
required
string <uuid>
attachmentUid
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 AbsenceUid = "YOUR_absenceUid_PARAMETER";
      var AttachmentUid = "YOUR_attachmentUid_PARAMETER";
      var request = await client.GetAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/absence/" + AbsenceUid + "/attachments/" + AttachmentUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
"string"

Absence_InsertAbsencesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
required
Array of objects (Zalary.Models.Absence.AbsenceRequest)

Responses

Request samples

Content type
{
}

Absence_PostAbsenceAttachmentsAsync

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.PostAsync("https://api.zenegy.com/api/companies/" + CompanyUid + "/absence/attachments?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

Absence_SplitEmployeeAbsence

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
absenceUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
numberOfDays
required
number <double> [ 0 .. 999 ]
payrollUid
required
string <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

Absence_GetAbsenceDataPerEmployee

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

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

Absence_AbsenceBulkRejectAsync

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://api.zenegy.com/api/companies/" + CompanyUid + "/absence/reject?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Absence_AbsenceBulkApproveAsync

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://api.zenegy.com/api/companies/" + CompanyUid + "/absence/approve?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

Absence_AbsenceBulkPendingAsync

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://api.zenegy.com/api/companies/" + CompanyUid + "/absence/pending?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Absence_ManuallyArchiveBulkPendingAsync

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://api.zenegy.com/api/companies/" + CompanyUid + "/absence/manuallyarchive?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Absence_RejectAbsence

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

      Console.WriteLine(response);
    }
  }
}

Absence_ApproveAbsence

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

      Console.WriteLine(response);
    }
  }
}

Absence_PendingAbsence

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

      Console.WriteLine(response);
    }
  }
}

Absence_ManualArchiveAbsence

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

      Console.WriteLine(response);
    }
  }
}