PUT api/Settings/Put

Puts the settings to save the changes.

Request Information

Parameters

NameDescriptionAdditional information
settings
A settings object.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Account": 2,
  "Inflation": 3.0,
  "Indexation": 4.0,
  "Debit": 5.0,
  "Credit": 6.0,
  "FinishDate": "17/11/2019 09:13"
}

application/xml, text/xml

Sample:
<Settings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <Account>2</Account>
  <Credit>6</Credit>
  <Debit>5</Debit>
  <FinishDate>2019-11-17T09:13:50.494625+01:00</FinishDate>
  <ID>1</ID>
  <Indexation>4</Indexation>
  <Inflation>3</Inflation>
</Settings>

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