PUT api/Weight

Request Information

URI Parameters

None.

Body Parameters

WeightEntryDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

globally unique identifier

None.

ChildId

integer

None.

Weight

decimal number

None.

WeightFormatted

string

None.

DateRecorded

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": "5794a599-8c1f-4b9e-90de-75a6dddfbb05",
  "ChildId": 3,
  "Weight": 4.0,
  "WeightFormatted": "4.00",
  "DateRecorded": "2019-05-27T00:37:27.4584208-04:00"
}

application/xml, text/xml

Sample:
<WeightEntryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <ChildId>3</ChildId>
  <DateRecorded>2019-05-27T00:37:27.4584208-04:00</DateRecorded>
  <Id>1</Id>
  <UserId>5794a599-8c1f-4b9e-90de-75a6dddfbb05</UserId>
  <Weight>4</Weight>
</WeightEntryDto>

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

Response Information

Resource Description

WeightEntryDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

globally unique identifier

None.

ChildId

integer

None.

Weight

decimal number

None.

WeightFormatted

string

None.

DateRecorded

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": "9dbf70e2-8eeb-4d23-85c1-4e04c24ec555",
  "ChildId": 3,
  "Weight": 4.0,
  "WeightFormatted": "4.00",
  "DateRecorded": "2019-05-27T00:37:27.4724206-04:00"
}

application/xml, text/xml

Sample:
<WeightEntryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <ChildId>3</ChildId>
  <DateRecorded>2019-05-27T00:37:27.4724206-04:00</DateRecorded>
  <Id>1</Id>
  <UserId>9dbf70e2-8eeb-4d23-85c1-4e04c24ec555</UserId>
  <Weight>4</Weight>
</WeightEntryDto>