POST api/Debt/Post

Posts a debt so it can be created in the system.

Request Information

Parameters

NameDescriptionAdditional information
debt
A debt object.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Entity": 2,
  "CostType": 3,
  "PropertyType": 4,
  "Description": "sample string 5",
  "Value": 6.0,
  "LoanedAmount": 7.0,
  "RepaymentType": 0,
  "YearlyIntrest": 8.0,
  "Years": 9,
  "StartDate": "18/01/2020 12:55"
}

application/xml, text/xml

Sample:
<Debt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <CostType>3</CostType>
  <Description>sample string 5</Description>
  <Entity>2</Entity>
  <ID>1</ID>
  <LoanedAmount>7</LoanedAmount>
  <PropertyType>4</PropertyType>
  <RepaymentType>FixedPayment</RepaymentType>
  <StartDate>2020-01-18T12:55:02.040125+01:00</StartDate>
  <Value>6</Value>
  <YearlyIntrest>8</YearlyIntrest>
  <Years>9</Years>
</Debt>

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 'Debt'.