PUT api/Entities/Put

Updates an Entity

Request Information

Parameters

NameDescriptionAdditional information
entity
The Entity to be updated

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "Type": 0,
  "Gender": 0,
  "BirthDate": "17/11/2019 08:34",
  "Account": 4
}

application/xml, text/xml

Sample:
<Entity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <Account>4</Account>
  <BirthDate>2019-11-17T08:34:24.838375+01:00</BirthDate>
  <Gender>Male</Gender>
  <ID>1</ID>
  <Name>sample string 2</Name>
  <Type>Person</Type>
</Entity>

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