GET api/Assets/GetAssetKBIndex?CompanyID={CompanyID}&AssetCode={AssetCode}
Get asset knowledgebase index
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
CompanyID | integer |
None. |
|
AssetCode | string |
None. |
Body Parameters
None.
Response Information
Resource Description
AssetAllocationDetailsResponseModelName | Description | Type | Additional information |
---|---|---|---|
AllocationDetails | Collection of AllocationDetailsModel |
None. |
|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "allocationDetails": [ { "assetID": 1, "equipmentNr": "sample string 1", "assetName": "sample string 2", "allocatedCustomerID": 1, "isAllocated": 1, "allocationDate": "2025-07-17T05:08:14.4852059+00:00", "allocationEndDate": "2025-07-17T05:08:14.4852059+00:00", "allocationCurrentLogID": 1, "allocatedUserType": 1, "employeeID": 1, "assignedEmployee": "sample string 3", "customerName": "sample string 4" }, { "assetID": 1, "equipmentNr": "sample string 1", "assetName": "sample string 2", "allocatedCustomerID": 1, "isAllocated": 1, "allocationDate": "2025-07-17T05:08:14.4852059+00:00", "allocationEndDate": "2025-07-17T05:08:14.4852059+00:00", "allocationCurrentLogID": 1, "allocatedUserType": 1, "employeeID": 1, "assignedEmployee": "sample string 3", "customerName": "sample string 4" } ], "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<AssetAllocationDetailsResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> <AllocationDetails> <AllocationDetailsModel> <AllocatedCustomerID>1</AllocatedCustomerID> <AllocatedUserType>1</AllocatedUserType> <AllocationCurrentLogID>1</AllocationCurrentLogID> <AllocationDate>2025-07-17T05:08:14.4852059+00:00</AllocationDate> <AllocationEndDate>2025-07-17T05:08:14.4852059+00:00</AllocationEndDate> <AssetID>1</AssetID> <AssetName>sample string 2</AssetName> <AssignedEmployee>sample string 3</AssignedEmployee> <CustomerName>sample string 4</CustomerName> <EmployeeID>1</EmployeeID> <EquipmentNr>sample string 1</EquipmentNr> <IsAllocated>1</IsAllocated> </AllocationDetailsModel> <AllocationDetailsModel> <AllocatedCustomerID>1</AllocatedCustomerID> <AllocatedUserType>1</AllocatedUserType> <AllocationCurrentLogID>1</AllocationCurrentLogID> <AllocationDate>2025-07-17T05:08:14.4852059+00:00</AllocationDate> <AllocationEndDate>2025-07-17T05:08:14.4852059+00:00</AllocationEndDate> <AssetID>1</AssetID> <AssetName>sample string 2</AssetName> <AssignedEmployee>sample string 3</AssignedEmployee> <CustomerName>sample string 4</CustomerName> <EmployeeID>1</EmployeeID> <EquipmentNr>sample string 1</EquipmentNr> <IsAllocated>1</IsAllocated> </AllocationDetailsModel> </AllocationDetails> </AssetAllocationDetailsResponseModel>
multipart/form-data
Sample:
<AssetAllocationDetailsResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord><AllocationDetails><AllocationDetailsModel><AllocatedCustomerID>1</AllocatedCustomerID><AllocatedUserType>1</AllocatedUserType><AllocationCurrentLogID>1</AllocationCurrentLogID><AllocationDate>2025-07-17T05:08:14.4852059+00:00</AllocationDate><AllocationEndDate>2025-07-17T05:08:14.4852059+00:00</AllocationEndDate><AssetID>1</AssetID><AssetName>sample string 2</AssetName><AssignedEmployee>sample string 3</AssignedEmployee><CustomerName>sample string 4</CustomerName><EmployeeID>1</EmployeeID><EquipmentNr>sample string 1</EquipmentNr><IsAllocated>1</IsAllocated></AllocationDetailsModel><AllocationDetailsModel><AllocatedCustomerID>1</AllocatedCustomerID><AllocatedUserType>1</AllocatedUserType><AllocationCurrentLogID>1</AllocationCurrentLogID><AllocationDate>2025-07-17T05:08:14.4852059+00:00</AllocationDate><AllocationEndDate>2025-07-17T05:08:14.4852059+00:00</AllocationEndDate><AssetID>1</AssetID><AssetName>sample string 2</AssetName><AssignedEmployee>sample string 3</AssignedEmployee><CustomerName>sample string 4</CustomerName><EmployeeID>1</EmployeeID><EquipmentNr>sample string 1</EquipmentNr><IsAllocated>1</IsAllocated></AllocationDetailsModel></AllocationDetails></AssetAllocationDetailsResponseModel>