Terminal - Create/Update registrations
API Url
Used for each user action and might return a new dialogue/transition if the registration selected has multiple "steps" required.
PUT
http://localhost:16010/ProMarkREST/web/Terminal/lan/registrations
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| terminal | Object | |
| data | String | Data from lan terminal. |
| ip | String | Terminal ip. |
| state | String | Terminal state. |
| statusGroup | String | The grouping of terminals in the terminal status overview. |
Request example:
{"request": {"data": {"terminal":{"data": "19\u00019","ip": "192.168.12.2","statusGroup": "ProMark on-premise Gateway","state": "{\"ttpiState\":[{\"Seq\":1,\"TermId\":\"9\",\"StateId\":1,\"StateDataOffset\":3, ..."}}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| terminal | Object | |
| terminalData | String[] | Data to terminal. |
| terminalState | String | Terminal state. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Response example:
HTTP/1.1 200 OK{"response": {"data": {"terminal": {"data":["18\u000120240222\u000115:02:33"]"state": ""terminalState": "{\"response\":{\"data\":{\"terminalData\":[\"18\\u000120240222\\u000115:02..."}}}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |