CompanyDepartment

CompanyDepartment_GetCompanyDepartmentsAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyDepartment_InsertCompanyDepartment

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
companyDepartmentTemplateUid
required
string <uuid>
name
required
string [ 0 .. 50 ] characters
number
required
string [ 0 .. 20 ] characters
responsibleEmployeePersons
Array of strings <uuid>

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

CompanyDepartment_GetCompanyDepartment

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyDepartment_DeleteCompanyDepartment

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

      Console.WriteLine(response);
    }
  }
}

CompanyDepartment_UpdateCompanyDepartment

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 50 ] characters
number
required
string [ 0 .. 20 ] characters
responsibleEmployeePersons
Array of strings <uuid>

Responses

Request samples

Content type
{
}

CompanyDepartment_GetWholeCompanyDepartment

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyDepartment_GetCompanyDepartmentAccountingsAsync

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

CompanyDepartment_UpdateCompanyDepartmentAccountingsAsync

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

Responses

Request samples

Content type
{
}

CompanyDepartment_GetCompanyDepartmentsAsync

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
skip
integer <int32>
take
integer <int32>
companyDepartmentUids
Array of strings <uuid>
responsiblePersonsUids
Array of strings <uuid>
object (Zalary.Models.Company.CompanyDepartment.DepartmentSortOptions)
departmentOverrides
Array of booleans

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}

CompanyDepartment_UpdateCompanyDepartmentAccounting

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
companyAccoutingUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
description
required
string [ 0 .. 75 ] characters
accountNumber
required
string

Responses

Request samples

Content type
{
}

CompanyDepartment_UpdateCompanyDepartmentTemplate

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
companyDepartmentUid
required
string <uuid>
companyDepartmentTemplateUid
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 CompanyDepartmentUid = "YOUR_companyDepartmentUid_PARAMETER";
      var CompanyDepartmentTemplateUid = "YOUR_companyDepartmentTemplateUid_PARAMETER";
      var request = await client.PatchAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/departments/" + CompanyDepartmentUid + "/templates/" + CompanyDepartmentTemplateUid + "?api-version=string", null);
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}