Tunnel reading registration
Note: This method is part of the Common API, exposed by the Common WebService.
The PostAddTunnelReading endpoint registers a tunnel reading (entry or exit) linked to a label, equipment, and tunnel previously registered in MIMS.
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/PostAddTunnelReading |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddTunnelReading" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| AuthToken | String | Yes | Authentication token returned by the LoginSession method |
| LabelNo | String | Yes | Label identifier |
| ReadingDate | DateTime | Yes | Date/time when the reading occurred |
| EquipmentNo | String(25) | Yes | Equipment code where the reading was performed |
| TunnelCode | Integer | Yes | Tunnel code |
| TunnelReadingOperationType | TipoLeitTune | Yes | Tunnel reading operation type: TLTEntrada (Entry) or TLTSaida (Exit) |
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information when executing the method |
| LabelNo | String | Yes | Label identifier |
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddTunnelReading"' \
--header 'Content-Type: application/json' \
--data '{
"AuthToken": "3F2C8A0D4B61441FAF9D0C2A6B8E9F10",
"LabelNo": "ETQ-000123",
"ReadingDate": "2025-11-11T20:51:50",
"EquipmentNo": "EQP-001",
"TunnelCode": 123456,
"TunnelReadingOperationType": "TLTEntrada"
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"LabelNo": "ETQ-000123"
}