ItemTypes

ItemTypes_GetItemTypeDetails

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

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

ItemTypes_DeleteItemType

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

      Console.WriteLine(response);
    }
  }
}

ItemTypes_UpdateItemTypeDetails

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
itemTypeUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 50 ] characters
parentUid
string <uuid>
type
required
integer <int32>
Enum: 1 2
image
required
integer <int32>
Enum: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
description
string
required
Array of objects (Zalary.Models.ItemsAndAccess.ItemType.EmployeeInItemTypeRequest)
required
Array of objects (Zalary.Models.ItemsAndAccess.ItemType.EmployeeInItemTypeRequest)
required
Array of objects (Zalary.Models.ItemsAndAccess.ItemCategory.CreateItemTypePropertyRequest)

Responses

Request samples

Content type
{
}

ItemTypes_GetItemTypes

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
roles
required
Array of integers <int32>
Items Enum: 1 2 3 4 5 6
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 + "/item-types?roles=1&api-version=string");
      var response = await request.Content.ReadAsStringAsync();

      Console.WriteLine(response);
    }
  }
}

Response samples

Content type
{
}

ItemTypes_InsertItemType

Authorizations:
oauth2
path Parameters
companyUid
required
string <uuid>
query Parameters
api-version
string
Request Body schema:
name
required
string [ 0 .. 50 ] characters
parentUid
string <uuid>
type
required
integer <int32>
Enum: 1 2
image
required
integer <int32>
Enum: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
description
string
required
Array of objects (Zalary.Models.ItemsAndAccess.ItemType.EmployeeInItemTypeRequest)
required
Array of objects (Zalary.Models.ItemsAndAccess.ItemType.EmployeeInItemTypeRequest)
required
Array of objects (Zalary.Models.ItemsAndAccess.ItemCategory.CreateItemTypePropertyRequest)

Responses

Request samples

Content type
{
}

Response samples

Content type
{
}