POST assets/{asset}/changes
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
asset | integer |
Required |
Body Parameters
ChangeName | Description | Type | Additional information |
---|---|---|---|
AssetID | integer |
None. |
|
Year | integer |
None. |
|
ID | integer |
None. |
|
TypeID | integer |
None. |
|
Type | ChangeType |
None. |
|
Description | string |
None. |
|
Date | date |
None. |
|
Quantity | integer |
None. |
|
PurchasedValue | decimal number |
None. |
|
DepreciatedAmount | decimal number |
None. |
|
AmortizationAmount | decimal number |
None. |
|
LocationID | integer |
None. |
|
Location | Location |
None. |
|
CostCenterID | integer |
None. |
|
LinkDocument | DocumentID |
None. |
Request Formats
application/json, text/json
Sample:
{ "AssetID": 1, "Year": 2, "ID": 3, "TypeID": 4, "Type": { "ID": 1, "Name": "sample string 2" }, "Description": "sample string 5", "Date": "2025-04-03T06:58:45.1745954+00:00", "Quantity": 7, "PurchasedValue": 8.0, "DepreciatedAmount": 9.0, "AmortizationAmount": 10.0, "LocationID": 11, "Location": { "ID": 1, "Name": "sample string 2", "OrganizationalUnitID": 3, "OrganizationalUnit": { "ID": 1, "Name": "sample string 2", "Address": { "Street": "sample string 1", "Postcode": "sample string 2", "City": "sample string 3", "CountryID": 4, "Country": { "ID": 1, "Name": "sample string 2", "CurrencyID": 1, "Currency": { "ID": 1, "Code": "sample string 2", "Name": "sample string 3", "Sign": "sample string 4", "Lookup": "sample string 5" }, "ISO31661": 1, "Alpha2": "sample string 3", "Alpha3": "sample string 4", "Audit": { "AddUser": 1, "AddTime": "2025-04-03T06:58:45.1745954+00:00", "EditUser": 1, "EditTime": "2025-04-03T06:58:45.1745954+00:00" } } }, "Status": 3, "Type": 4, "InvoiceCalculationMethod": 5 } }, "CostCenterID": 12, "LinkDocument": { "Year": 1, "OrganizationalUnitID": 1, "CategoryID": 1, "ID": 1 } }
text/xml
Sample:
<Change xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pixfin.DTO.Assets"> <AmortizationAmount>10</AmortizationAmount> <AssetID>1</AssetID> <CostCenterID>12</CostCenterID> <Date>2025-04-03T06:58:45.1745954+00:00</Date> <DepreciatedAmount>9</DepreciatedAmount> <Description>sample string 5</Description> <ID>3</ID> <LinkDocument xmlns:d2p1="http://schemas.datacontract.org/2004/07/Pixfin.DTO"> <d2p1:CategoryID>1</d2p1:CategoryID> <d2p1:ID>1</d2p1:ID> <d2p1:OrganizationalUnitID>1</d2p1:OrganizationalUnitID> <d2p1:Year>1</d2p1:Year> </LinkDocument> <Location> <ID>1</ID> <Name>sample string 2</Name> <OrganizationalUnit xmlns:d3p1="http://schemas.datacontract.org/2004/07/Pixfin.DTO.Common"> <d3p1:Address> <d3p1:City>sample string 3</d3p1:City> <d3p1:Country> <d3p1:Alpha2>sample string 3</d3p1:Alpha2> <d3p1:Alpha3>sample string 4</d3p1:Alpha3> <d3p1:Audit xmlns:d6p1="http://schemas.datacontract.org/2004/07/Pixfin.DTO"> <d6p1:AddTime>2025-04-03T06:58:45.1745954+00:00</d6p1:AddTime> <d6p1:AddUser>1</d6p1:AddUser> <d6p1:EditTime>2025-04-03T06:58:45.1745954+00:00</d6p1:EditTime> <d6p1:EditUser>1</d6p1:EditUser> </d3p1:Audit> <d3p1:Currency> <d3p1:Code>sample string 2</d3p1:Code> <d3p1:ID>1</d3p1:ID> <d3p1:Lookup>sample string 5</d3p1:Lookup> <d3p1:Name>sample string 3</d3p1:Name> <d3p1:Sign>sample string 4</d3p1:Sign> </d3p1:Currency> <d3p1:CurrencyID>1</d3p1:CurrencyID> <d3p1:ID>1</d3p1:ID> <d3p1:ISO31661>1</d3p1:ISO31661> <d3p1:Name>sample string 2</d3p1:Name> </d3p1:Country> <d3p1:CountryID>4</d3p1:CountryID> <d3p1:Postcode>sample string 2</d3p1:Postcode> <d3p1:Street>sample string 1</d3p1:Street> </d3p1:Address> <d3p1:ID>1</d3p1:ID> <d3p1:InvoiceCalculationMethod>5</d3p1:InvoiceCalculationMethod> <d3p1:Name>sample string 2</d3p1:Name> <d3p1:Status>3</d3p1:Status> <d3p1:Type>4</d3p1:Type> </OrganizationalUnit> <OrganizationalUnitID>3</OrganizationalUnitID> </Location> <LocationID>11</LocationID> <PurchasedValue>8</PurchasedValue> <Quantity>7</Quantity> <Type> <ID>1</ID> <Name>sample string 2</Name> </Type> <TypeID>4</TypeID> <Year>2</Year> </Change>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |