companyUid required | string <uuid> |
itemTypeUid required | string <uuid> |
api-version | string |
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); } } }
{- "parentUid": "00000000-0000-0000-0000-000000000000",
- "description": "string",
- "employees": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "role": 1
}
], - "employeeGroup": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "role": 1
}
], - "itemTypeProperties": [
- {
- "propertyName": "string",
- "isRequired": true,
- "regularExpresion": "string",
- "dataType": 1,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
], - "name": "string",
- "imageType": 1,
- "type": 1,
- "accessInfo": 2,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
companyUid required | string <uuid> |
itemTypeUid required | string <uuid> |
api-version | string |
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); } } }
companyUid required | string <uuid> |
itemTypeUid required | string <uuid> |
api-version | string |
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) |
{- "name": "string",
- "parentUid": "00000000-0000-0000-0000-000000000000",
- "type": 1,
- "image": 1,
- "description": "string",
- "employees": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "role": 1
}
], - "employeeGroups": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "role": 1
}
], - "customFields": [
- {
- "name": "string",
- "isRequired": true,
- "regularExpresion": "string",
- "dataType": 1,
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
}
companyUid required | string <uuid> |
roles required | Array of integers <int32> Items Enum: 1 2 3 4 5 6 |
api-version | string |
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); } } }
{- "totalRecords": 0,
- "totalDisplayRecords": 0,
- "data": [
- {
- "image": 1,
- "numberOfItems": 0,
- "numberOfCustomFields": 0,
- "isUsed": true,
- "parentUid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "imageType": 1,
- "type": 1,
- "accessInfo": 2,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
}
companyUid required | string <uuid> |
api-version | string |
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) |
{- "name": "string",
- "parentUid": "00000000-0000-0000-0000-000000000000",
- "type": 1,
- "image": 1,
- "description": "string",
- "employees": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "role": 1
}
], - "employeeGroups": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "role": 1
}
], - "customFields": [
- {
- "name": "string",
- "isRequired": true,
- "regularExpresion": "string",
- "dataType": 1,
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
}
{- "parentUid": "00000000-0000-0000-0000-000000000000",
- "description": "string",
- "employees": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "role": 1
}
], - "employeeGroup": [
- {
- "uid": "00000000-0000-0000-0000-000000000000",
- "name": "string",
- "role": 1
}
], - "itemTypeProperties": [
- {
- "propertyName": "string",
- "isRequired": true,
- "regularExpresion": "string",
- "dataType": 1,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
], - "name": "string",
- "imageType": 1,
- "type": 1,
- "accessInfo": 2,
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}