POST api/Depreciation

Request Information

URI Parameters

None.

Body Parameters

AssetsCost
NameDescriptionTypeAdditional information
Id

integer

None.

MainCategory

integer

None.

SubCategory

integer

None.

AssetCode

string

None.

AssetValue

decimal number

None.

DepreciationType

integer

None.

DepreciationRate

integer

None.

PresentValue

decimal number

None.

CreatedOn

date

None.

ModifiedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "MainCategory": 1,
  "SubCategory": 1,
  "AssetCode": "sample string 2",
  "AssetValue": 1.0,
  "DepreciationType": 1,
  "DepreciationRate": 1,
  "PresentValue": 1.0,
  "CreatedOn": "2026-07-31T15:21:52.3043396-07:00",
  "ModifiedOn": "2026-07-31T15:21:52.3043396-07:00"
}

application/xml, text/xml

Sample:
<AssetsCost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BILLING.DAL.DataModel">
  <AssetCode>sample string 2</AssetCode>
  <AssetValue>1</AssetValue>
  <CreatedOn>2026-07-31T15:21:52.3043396-07:00</CreatedOn>
  <DepreciationRate>1</DepreciationRate>
  <DepreciationType>1</DepreciationType>
  <Id>1</Id>
  <MainCategory>1</MainCategory>
  <ModifiedOn>2026-07-31T15:21:52.3043396-07:00</ModifiedOn>
  <PresentValue>1</PresentValue>
  <SubCategory>1</SubCategory>
</AssetsCost>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AssetsCost'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.