EmployeeRelatives

EmployeeRelatives_GetRelativesAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

EmployeeRelatives_PostRelativesAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 300 ] characters
phone
string [ 0 .. 50 ] characters
email
string [ 0 .. 75 ] characters
relation
required
string [ 0 .. 70 ] characters

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

EmployeeRelatives_UpdateRelativePerEmployee

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
uid
required
string <uuid>
name
required
string [ 0 .. 300 ] characters
phone
string [ 0 .. 50 ] characters
email
string [ 0 .. 75 ] characters
relation
required
string [ 0 .. 70 ] characters

Responses

Request samples

Content type
{
}

EmployeeRelatives_DeletePayCheckPerEmployee

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
relativeUid
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 RelativeUid = "YOUR_relativeUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/employees/" + EmployeeUid + "/relatives/" + RelativeUid + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}