Skip to main content

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 TypeExample URL
POST{{url_base}}/PostAddTunnelReading
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddTunnelReading"

Input Parameters

ParameterTypeRequiredDescription
AuthTokenStringYesAuthentication token returned by the LoginSession method
LabelNoStringYesLabel identifier
ReadingDateDateTimeYesDate/time when the reading occurred
EquipmentNoString(25)YesEquipment code where the reading was performed
TunnelCodeIntegerYesTunnel code
TunnelReadingOperationTypeTipoLeitTuneYesTunnel reading operation type: TLTEntrada (Entry) or TLTSaida (Exit)

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information when executing the method
LabelNoStringYesLabel 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"
}