companyUid 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 request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/cost-center?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
[- {
- "costCenterName": "string",
- "costCenterCode": "string",
- "type": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
companyUid required | string <uuid> |
api-version | string |
costCenterName | string |
costCenterCode | string |
employeeUids | Array of strings <uuid> |
type | string |
{- "costCenterName": "string",
- "costCenterCode": "string",
- "employeeUids": [
- "00000000-0000-0000-0000-000000000000"
], - "type": "string"
}
companyUid required | string <uuid> |
costCenterUid 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 CostCenterUid = "YOUR_costCenterUid_PARAMETER"; var request = await client.GetAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/cost-center/" + CostCenterUid + "?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
{- "numberOfEmployees": 0,
- "employeeUids": [
- "00000000-0000-0000-0000-000000000000"
], - "costCenterName": "string",
- "costCenterCode": "string",
- "type": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
companyUid required | string <uuid> |
costCenterUid 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 CostCenterUid = "YOUR_costCenterUid_PARAMETER"; var request = await client.DeleteAsync("https://signalr.zenegy.com/api/companies/" + CompanyUid + "/cost-center/" + CostCenterUid + "?api-version=string"); var response = await request.Content.ReadAsStringAsync(); Console.WriteLine(response); } } }
companyUid required | string <uuid> |
costCenterUid required | string <uuid> |
api-version | string |
costCenterName | string |
costCenterCode | string |
employeeUids | Array of strings <uuid> |
type | string |
{- "costCenterName": "string",
- "costCenterCode": "string",
- "employeeUids": [
- "00000000-0000-0000-0000-000000000000"
], - "type": "string"
}
companyUid required | string <uuid> |
api-version | string |
skip | integer <int32> |
take | integer <int32> |
searchPhrase | string |
type | Array of strings |
{- "skip": 0,
- "take": 0,
- "searchPhrase": "string",
- "type": [
- "string"
]
}
{- "totalRecords": 0,
- "totalDisplayRecords": 0,
- "data": [
- {
- "numberOfEmployees": 0,
- "employeeUids": [
- "00000000-0000-0000-0000-000000000000"
], - "costCenterName": "string",
- "costCenterCode": "string",
- "type": "string",
- "id": 0,
- "uid": "00000000-0000-0000-0000-000000000000"
}
]
}
companyUid required | string <uuid> |
api-version | string |
[- "00000000-0000-0000-0000-000000000000"
]
{- "isPartialSuccess": true
}