POST api/Sensor
Request Information
URI Parameters
None.
Body Parameters
SensorModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Manufacturer | string |
None. |
|
Model | string |
None. |
|
DateCreated | date |
Data type: Date |
Request Formats
application/json, text/json
Sample:
{ "Id": "90d06311-2af6-4d6c-8dbf-1a95d9d1f204", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:09:13.9265463+01:00" }
application/xml, text/xml
Sample:
<SensorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WaterLab.Models"> <DateCreated>2025-01-22T21:09:13.9265463+01:00</DateCreated> <Id>90d06311-2af6-4d6c-8dbf-1a95d9d1f204</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SensorModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Manufacturer | string |
None. |
|
Model | string |
None. |
|
DateCreated | date |
Data type: Date |
Response Formats
application/json, text/json
Sample:
{ "Id": "aa904e1d-343f-4c11-8cab-bc1b434422c7", "Manufacturer": "sample string 2", "Model": "sample string 3", "DateCreated": "2025-01-22T21:09:13.9265463+01:00" }
application/xml, text/xml
Sample:
<SensorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WaterLab.Models"> <DateCreated>2025-01-22T21:09:13.9265463+01:00</DateCreated> <Id>aa904e1d-343f-4c11-8cab-bc1b434422c7</Id> <Manufacturer>sample string 2</Manufacturer> <Model>sample string 3</Model> </SensorModel>