GET api/Assets/GetAssetAllocation?AssetID={AssetID}&APIKey={APIKey}

Get asset allocation

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AssetID

integer

None.

APIKey

string

None.

Body Parameters

None.

Response Information

Resource Description

AssetAllocationDetailsResponseModel
NameDescriptionTypeAdditional 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-17T04:13:20.6171015+00:00",
      "allocationEndDate": "2025-07-17T04:13:20.6171015+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-17T04:13:20.6171015+00:00",
      "allocationEndDate": "2025-07-17T04:13:20.6171015+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-17T04:13:20.6171015+00:00</AllocationDate>
      <AllocationEndDate>2025-07-17T04:13:20.6171015+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-17T04:13:20.6171015+00:00</AllocationDate>
      <AllocationEndDate>2025-07-17T04:13:20.6171015+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-17T04:13:20.6171015+00:00</AllocationDate><AllocationEndDate>2025-07-17T04:13:20.6171015+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-17T04:13:20.6171015+00:00</AllocationDate><AllocationEndDate>2025-07-17T04:13:20.6171015+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>