POST assets/types
Request Information
URI Parameters
None.
Body Parameters
TypeName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Name | string |
None. |
|
CategoryID | integer |
None. |
|
Category | Category |
None. |
|
Rate | integer |
None. |
|
Purchase | string |
None. |
|
Amortization | string |
None. |
|
Depreciation | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "Name": "sample string 2", "CategoryID": 3, "Category": { "ID": 1, "Name": "sample string 2", "Rate": 3, "Lifetime": 4, "ClassID": 5 }, "Rate": 4, "Purchase": "sample string 5", "Amortization": "sample string 6", "Depreciation": "sample string 7" }
text/xml
Sample:
<Type xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pixfin.DTO.Assets"> <Amortization>sample string 6</Amortization> <Category> <ClassID>5</ClassID> <ID>1</ID> <Lifetime>4</Lifetime> <Name>sample string 2</Name> <Rate>3</Rate> </Category> <CategoryID>3</CategoryID> <Depreciation>sample string 7</Depreciation> <ID>1</ID> <Name>sample string 2</Name> <Purchase>sample string 5</Purchase> <Rate>4</Rate> </Type>
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. |