Terminal - Log terminal ping information
API Url
Used to log terminal ping information
http://localhost:16010/ProMarkREST/rest/Terminal/pings
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| pings | Object[] | Collection of terminal ping information. |
biosoptional | String | Terminal BIOS version |
firmwareoptional | String | Terminal firmware |
| id | Number | Terminal identifier |
ipoptional | String | Terminal IP address |
macoptional | String | Terminal MAC address |
typeoptional | String | Terminal Type |
descriptionoptional | String | Terminal Settings description |
disableEmpNooptional | Boolean | Terminal Settings disable employee no. |
logLeveloptional | Number | Terminal Settings log level |
oneClickSelectionoptional | Boolean | Terminal Settings one click selection |
sendAsReaderoptional | Boolean | Terminal Settings send as reader |
terminalIdoptional | Number | Terminal identifier |
terminalSettingsIdoptional | String | Terminal Settings Identifier |
Request example for terminal ping information log put:
{"request":{"data": {"pings": [{"id": "1301","type": "KABA Android"}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| terminalSettings | Object[] | Collection of terminal settings. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"terminalSettings": []},"errorCode": 0,"errorMessage": ""}}
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. |