GlobalValueSets

GlobalValueSets_GetGlobalValueSetsPerCompanyAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

GlobalValueSets_CreateValueSetAsync

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

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GlobalValueSets_GetEmployeesNotInGlobalValueSetAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

GlobalValueSets_GetGlobalValueSetAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

GlobalValueSets_UpdateGlobalValueSetAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
globalValueSetUid
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

Responses

Request samples

Content type
{
}

GlobalValueSets_GetGlobalValuesPerSetAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
[
]

GlobalValueSets_GetGlobalValueSetsPerCompanyAsync

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

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GlobalValueSets_BulkDeleteGlobalValueSetAsync

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

Responses

Request samples

Content type
[
]

GlobalValueSets_BulkCompleteDeleteGlobalValueSetAsync

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

Responses

Request samples

Content type
[
]

GlobalValueSets_AssignEmployeesToSetAsync

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

Responses

Request samples

Content type
[
]

GlobalValueSets_GetAssignedEmployeesToSetAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
globalValueSetUid
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
assignmentStatus
Array of integers <int32>
Items Enum: 0 1 2 3 4 5

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

GlobalValueSets_RemoveEmployeeFromGlobalValueSetAsync

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

Responses

Request samples

Content type
[
]

GlobalValueSets_RemoveGlobalValuesFromGlobalValueSetAsync

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

Responses

Request samples

Content type
[
]

GlobalValueSets_CompleteRemovingEmployeeFromGlobalValueSetAsync

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

Responses

Request samples

Content type
[
]

GlobalValueSets_CompleteRemovingGlobalValuesFromGlobalValueSetAsync

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

Responses

Request samples

Content type
[
]

GlobalValueSets_AddGlobalValueToSetAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
globalValueSetUid
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)

Responses

Request samples

Content type
{
}

GlobalValueSets_RemoveEmployeeFromGlobalValueSetAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
globalValueSetUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
globalValueSetRemoveSelector.globalValueType
integer <int32>
globalValueSetRemoveSelector.referenceUid
string <uuid>

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 GlobalValueSetUid = "YOUR_globalValueSetUid_PARAMETER";
      var EmployeeUid = "YOUR_employeeUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/global-value-sets/" + GlobalValueSetUid + "/employees/" + EmployeeUid + "?api-version=string&globalValueSetRemoveSelector.globalValueType=0&globalValueSetRemoveSelector.referenceUid=497f6eca-6276-4993-bfeb-53cbbbba6f08");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

GlobalValueSets_RemoveGlobalValueAndKeepEmployeeInSetAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
globalValueSetUid
required
string <uuid>
employeeUid
required
string <uuid>
query Parameters
api-version
string
globalValueSetRemoveSelector.globalValueType
integer <int32>
globalValueSetRemoveSelector.referenceUid
string <uuid>

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 GlobalValueSetUid = "YOUR_globalValueSetUid_PARAMETER";
      var EmployeeUid = "YOUR_employeeUid_PARAMETER";
      var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/global-value-sets/" + GlobalValueSetUid + "/employees/" + EmployeeUid + "/override-global-value?api-version=string&globalValueSetRemoveSelector.globalValueType=0&globalValueSetRemoveSelector.referenceUid=497f6eca-6276-4993-bfeb-53cbbbba6f08");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}