GlobalValues

GlobalValues_GetGlobalValuesPerCompanyAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

GlobalValues_CreateGlobalValueAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 250 ] characters
number
required
string [ 0 .. 20 ] characters
type
required
integer <int32>
value
required
string
isDateManaged
boolean
object (Zalary.Models.EmployeeValue.EmployeeValueEffectiveDate)
object (Zalary.Models.EmployeeValue.EmployeeValueEffectiveDate)

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GlobalValues_GetGlobalValueDetailsAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

GlobalValues_UpdateGlobalValueAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
globalValueUid
required
string
query Parameters
api-version
string
Request Body schema:
uid
string <uuid>
name
required
string [ 0 .. 250 ] characters
number
required
string [ 0 .. 20 ] characters
type
required
integer <int32>
value
required
string
isDateManaged
boolean
object (Zalary.Models.EmployeeValue.EmployeeValueEffectiveDate)
object (Zalary.Models.EmployeeValue.EmployeeValueEffectiveDate)

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GlobalValues_GetCompanyGlobalValuesOfTypeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
globalValueType
required
integer <int32>
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 GlobalValueType = "YOUR_globalValueType_PARAMETER";
      var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/global-values/type/" + GlobalValueType + "?api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

GlobalValues_GetAssignedGlobalValuesAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

GlobalValues_GetUnassignedEmployeesInGlobalValueAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

GlobalValues_GetGlobalValuesPerCompanyAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
skip
integer <int32>
take
integer <int32>
search
string
types
Array of integers <int32>
override
integer <int32>
sortBy
integer <int32>
employeeUids
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GlobalValues_AssignEmployeesToGlobalValueAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
companyGlobalValueUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
isDateManaged
boolean
object (Zalary.Models.EmployeeValue.EmployeeValueEffectiveDate)
object (Zalary.Models.EmployeeValue.EmployeeValueEffectiveDate)
employeeUids
Array of strings <uuid>

Responses

Request samples

Content type
{
}

GlobalValues_GetAssignedEmployeesToGlobalValueAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
companyGlobalValueUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
skip
integer <int32>
take
integer <int32>
search
string
departmentUids
Array of strings
salaryPayoutPeriods
Array of integers <int32>
Items Enum: 0 1 2 3 4
salaryTypes
Array of integers <int32>
Items Enum: 0 1 2 3 4 5

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GlobalValues_RemoveEmployeesFromGlobalValueAsync

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

Responses

Request samples

Content type
[
]

GlobalValues_AssignGlobalValueToEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
companyGlobalValueUid
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 CompanyGlobalValueUid = "YOUR_companyGlobalValueUid_PARAMETER";
      var request = await client.PostAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/global-values/" + CompanyGlobalValueUid + "/assign/" + EmployeeUid + "?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{ }

GlobalValues_RemoveAssignmentForGlobalValueToEmployeeAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
employeeUid
required
string <uuid>
companyGlobalValueUid
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 CompanyGlobalValueUid = "YOUR_companyGlobalValueUid_PARAMETER";
      var request = await client.PostAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/global-values/" + CompanyGlobalValueUid + "/unassign/" + EmployeeUid + "?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

GlobalValues_BulkDeleteCompanyGlobalValuesAsync

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

Responses

Request samples

Content type
[
]

GlobalValues_DeleteCompanyGlobalValueAsync

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

      Console.WriteLine(response);
    }
  }
}