Device Configuration Save
Save configurations of devices used.
URL
securitysystems/deviceconfigurationsave
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| key | String | 32 | 32 | M | VEtObsyYYm6juM9n1aLmMvFRwcsR87oV | Key obtained from authentiaction. |
| locationid | Integer | M | 1 | Identification number of location | ||
| locationname | String | M | LOCATION | Name of the location | ||
| configtypes | Integer | M | 1 | Type of configuration 1 GateIn 2 GateOut 3 WeighBridge | ||
| configprocess | Integer | M | 1 | Configuration process type 1 Automatic 2 Manual | ||
| configinitiated | Integer | M | 1 | Initiated configuration type 1 ANPR 2 Manual 3 QRCode | ||
| anprname | String | M | ANPR CAM 01 | ANPR camera name for number plate recognition | ||
| gatename | String | M | GATE 01 | Name of the gate | ||
| eventtype | String | M | A | Event type A Add E Edit | ||
| qrcode | String | M | QR1 | QR Code scanner device name | ||
| active | String | M | T | Whether the configuration is active or not. T True F False | ||
| weighbridgename | String | M | Weigh Bridge 01 | Name of the weigh bridge (only used in weigh bridge configuration) | ||
| imagecameralist | String | M | [ "fghdfgh" ] | All cameras will be fetched as list of string | ||
| autogateinwaitsec | Integer | M | 10000 | Auto gate in wait in seconds |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| locationid | String | M | 1 | Identification number of location | ||
| configtypes | String | M | 1 | Type of configuration 1 GateIn 2 GateOut 3 WeighBridge | ||
| saveddata | String | M | {"key":"J3clbZKCL0GGhCn1KBD/4Q==","locationid":1,"locationname":"dgfhdgfh","configtypes":2,"configprocess":1,"configinitiated":1,"anprname":"ANPR CAM 01","imagecameralist":["fghdfgh"],"gatename":"GATE 01","eventtype":"A","qrcode":"","active":"T","weighbridgename":""} | Details of configuration as json string |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq",
"locationid": "1",
"locationname": "LOCATION",
"configtypes": "1",
"configprocess": "1",
"configinitiated": "1",
"anprname": "ANPR CAM 01",
"gatename": "GATE 01",
"eventtype": "A",
"qrcode": "QR1",
"active": "T",
"weighbridgename": "Weigh Bridge 01",
"imagecameralist": "[\n \"fghdfgh\"\n ]",
"autogateinwaitsec": "10000"
}
Sample Success Response
{
"locationid": "1",
"configtypes": "1",
"saveddata": "{"key":"J3clbZKCL0GGhCn1KBD/4Q==","locationid":1,"locationname":"dgfhdgfh","configtypes":2,"configprocess":1,"configinitiated":1,"anprname":"ANPR CAM 01","imagecameralist":["fghdfgh"],"gatename":"GATE 01","eventtype":"A","qrcode":"","active":"T","weighbridgename":""}",
"e": 200,
"msg": "Success"
}
Sample Failure Responses
{
"e": 401,
"msg": "Invalid authentication credentials."
}
{
"e": 499,
"msg": "Invalid Session"
}