PUT api/Incomes

Puts the income to save the changes.

Request Information

Parameters

NameDescriptionAdditional information
income
A income object.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Description": "sample string 2",
  "Type": 3,
  "Entity": 4,
  "StartDate": "19/04/2024 06:15",
  "EndDate": "19/04/2024 06:15",
  "EndDateType": 0,
  "Frequency": 0,
  "Amount": 6.0,
  "Inflation": true,
  "Indexation": true,
  "Independant": true,
  "Evolutions": [
    {
      "ID": 1,
      "StartDate": "19/04/2024 06:15",
      "EndDate": "19/04/2024 06:15",
      "EndDateType": 0,
      "Percentage": 3.0,
      "Amount": 4.0,
      "Description": "sample string 5",
      "Frequency": 0,
      "ResumeAfter": true
    },
    {
      "ID": 1,
      "StartDate": "19/04/2024 06:15",
      "EndDate": "19/04/2024 06:15",
      "EndDateType": 0,
      "Percentage": 3.0,
      "Amount": 4.0,
      "Description": "sample string 5",
      "Frequency": 0,
      "ResumeAfter": true
    },
    {
      "ID": 1,
      "StartDate": "19/04/2024 06:15",
      "EndDate": "19/04/2024 06:15",
      "EndDateType": 0,
      "Percentage": 3.0,
      "Amount": 4.0,
      "Description": "sample string 5",
      "Frequency": 0,
      "ResumeAfter": true
    }
  ]
}

application/xml, text/xml

Sample:
<Income xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <Amount>6</Amount>
  <Description>sample string 2</Description>
  <EndDate>2024-04-19T06:15:13.055+02:00</EndDate>
  <EndDateType>SixtyFiveYears</EndDateType>
  <Entity>4</Entity>
  <Evolutions>
    <Evolution>
      <Amount>4</Amount>
      <Description>sample string 5</Description>
      <EndDate>2024-04-19T06:15:13.070625+02:00</EndDate>
      <EndDateType>SixtyFiveYears</EndDateType>
      <Frequency>Once</Frequency>
      <ID>1</ID>
      <Percentage>3</Percentage>
      <ResumeAfter>true</ResumeAfter>
      <StartDate>2024-04-19T06:15:13.070625+02:00</StartDate>
    </Evolution>
    <Evolution>
      <Amount>4</Amount>
      <Description>sample string 5</Description>
      <EndDate>2024-04-19T06:15:13.070625+02:00</EndDate>
      <EndDateType>SixtyFiveYears</EndDateType>
      <Frequency>Once</Frequency>
      <ID>1</ID>
      <Percentage>3</Percentage>
      <ResumeAfter>true</ResumeAfter>
      <StartDate>2024-04-19T06:15:13.070625+02:00</StartDate>
    </Evolution>
    <Evolution>
      <Amount>4</Amount>
      <Description>sample string 5</Description>
      <EndDate>2024-04-19T06:15:13.070625+02:00</EndDate>
      <EndDateType>SixtyFiveYears</EndDateType>
      <Frequency>Once</Frequency>
      <ID>1</ID>
      <Percentage>3</Percentage>
      <ResumeAfter>true</ResumeAfter>
      <StartDate>2024-04-19T06:15:13.070625+02:00</StartDate>
    </Evolution>
  </Evolutions>
  <Frequency>Once</Frequency>
  <ID>1</ID>
  <Independant>true</Independant>
  <Indexation>true</Indexation>
  <Inflation>true</Inflation>
  <StartDate>2024-04-19T06:15:13.055+02:00</StartDate>
  <Type>3</Type>
</Income>

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