PUT api/Measurements/{id}

Zmienia dane pomiaru o identyfikatorze id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Measurement
NameDescriptionTypeAdditional information
MeasurementId

Identyfikator pomiaru nadawany automatycznie, można go pominąć.

integer

None.

Author

Autor pomiaru.

string

String length: inclusive between 0 and 50

Gage

Opis przyrzadu lub co jest mierzone.

string

String length: inclusive between 0 and 50

Date

Data pomiaru, można pominąć, wtedy będzie wpisana bieżąca data i czas.

date

None.

Request Formats

application/json, text/json

Sample:
{
  "MeasurementId": 1,
  "Author": "sample string 2",
  "Gage": "sample string 3",
  "Date": "2025-12-16T18:15:15.009837+01:00"
}

application/xml, text/xml

Sample:
<Measurement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestWebApi.Models">
  <Author>sample string 2</Author>
  <Date>2025-12-16T18:15:15.009837+01:00</Date>
  <Gage>sample string 3</Gage>
  <MeasurementId>1</MeasurementId>
</Measurement>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.