POST api/Assets/QuickAssetAllocation
Asset allocation
Request Information
URI Parameters
None.
Body Parameters
QuickAssetAllocationRequestModelName | Description | Type | Additional information |
---|---|---|---|
AllocationDetils | Collection of QuickAssetAllocationDetailsRequestModel |
None. |
|
APIKey | string |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{ "allocationDetils": [ { "assetID": 1, "allocatedUserType": 2, "employeeID": 1, "customerID": 1, "allocationStartDate": "2025-07-17T04:00:27.3657476+00:00", "userID": 1 }, { "assetID": 1, "allocatedUserType": 2, "employeeID": 1, "customerID": 1, "allocationStartDate": "2025-07-17T04:00:27.3657476+00:00", "userID": 1 } ], "apiKey": "sample string 1" }
application/xml, text/xml
Sample:
<QuickAssetAllocationRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"> <APIKey>sample string 1</APIKey> <AllocationDetils> <QuickAssetAllocationDetailsRequestModel> <AllocatedUserType>2</AllocatedUserType> <AllocationStartDate>2025-07-17T04:00:27.3657476+00:00</AllocationStartDate> <AssetID>1</AssetID> <CustomerID>1</CustomerID> <EmployeeID>1</EmployeeID> <UserID>1</UserID> </QuickAssetAllocationDetailsRequestModel> <QuickAssetAllocationDetailsRequestModel> <AllocatedUserType>2</AllocatedUserType> <AllocationStartDate>2025-07-17T04:00:27.3657476+00:00</AllocationStartDate> <AssetID>1</AssetID> <CustomerID>1</CustomerID> <EmployeeID>1</EmployeeID> <UserID>1</UserID> </QuickAssetAllocationDetailsRequestModel> </AllocationDetils> </QuickAssetAllocationRequestModel>
multipart/form-data
Sample:
<QuickAssetAllocationRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><APIKey>sample string 1</APIKey><AllocationDetils><QuickAssetAllocationDetailsRequestModel><AllocatedUserType>2</AllocatedUserType><AllocationStartDate>2025-07-17T04:00:27.3657476+00:00</AllocationStartDate><AssetID>1</AssetID><CustomerID>1</CustomerID><EmployeeID>1</EmployeeID><UserID>1</UserID></QuickAssetAllocationDetailsRequestModel><QuickAssetAllocationDetailsRequestModel><AllocatedUserType>2</AllocatedUserType><AllocationStartDate>2025-07-17T04:00:27.3657476+00:00</AllocationStartDate><AssetID>1</AssetID><CustomerID>1</CustomerID><EmployeeID>1</EmployeeID><UserID>1</UserID></QuickAssetAllocationDetailsRequestModel></AllocationDetils></QuickAssetAllocationRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponseDataModelName | Description | Type | Additional information |
---|---|---|---|
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:
{ "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<CommonResponseDataModel 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> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel 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></CommonResponseDataModel>