POST api/ESSystem/v1/MainCounterSources/reads/add
Request Information
URI Parameters
None.
Body Parameters
MainCounterSourceReadModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | globally unique identifier |
None. |
|
| MainCounterID | globally unique identifier |
None. |
|
| ReadTime | date |
None. |
|
| MeterRead | decimal number |
None. |
|
| SourceGuid | globally unique identifier |
None. |
|
| ReadReason | integer |
None. |
|
| IsReset | boolean |
None. |
|
| Note | string |
None. |
|
| Image | Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": "43a392a5-dbf2-44bc-b8e3-a318cbed9c1e",
"MainCounterID": "7a7bb21e-d31a-4f79-a595-b30e77375912",
"ReadTime": "2026-11-15T02:22:17.9320561+03:00",
"MeterRead": 1.0,
"SourceGuid": "fc6f2830-4d85-4bef-ba8f-07679120ea77",
"ReadReason": 1,
"IsReset": true,
"Note": "sample string 2",
"Image": "QEA="
}
application/xml, text/xml
Sample:
<MainCounterSourceReadModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models"> <ID>43a392a5-dbf2-44bc-b8e3-a318cbed9c1e</ID> <Image>QEA=</Image> <IsReset>true</IsReset> <MainCounterID>7a7bb21e-d31a-4f79-a595-b30e77375912</MainCounterID> <MeterRead>1</MeterRead> <Note>sample string 2</Note> <ReadReason>1</ReadReason> <ReadTime>2026-11-15T02:22:17.9320561+03:00</ReadTime> <SourceGuid>fc6f2830-4d85-4bef-ba8f-07679120ea77</SourceGuid> </MainCounterSourceReadModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Error | integer |
None. |
|
| Message | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Error": 1,
"Message": "sample string 2",
"Data": {}
}
application/xml, text/xml
Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Core.Common"> <Data /> <Error>1</Error> <Message>sample string 2</Message> </ApiResult>