Skip to main content
POST
/
panel
/
refresh
Refresh Sensors and Controllers
curl --request POST \
  --url https://apigw.bienport.com/api/panel/refresh \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'OrganizationId: <organizationid>' \
  --data '
{
  "pinCode": "AES-256 encrypted pin code",
  "resourceId": 60
}
'
{
  "resourceId": 123,
  "networkId": "<string>",
  "resourceName": "<string>",
  "enabled": true,
  "modelName": "<string>",
  "brandName": "<string>",
  "treePath": "<string>",
  "orgId": 123,
  "resourceSensors": [
    {
      "type": "<string>",
      "sensors": [
        {
          "id": 123,
          "resourceId": 123,
          "orderNo": 123,
          "ioType": "Digital",
          "ioDirection": "Input",
          "trueValue": "<string>",
          "falseValue": "<string>",
          "partitions": [
            {
              "name": "<string>",
              "no": 123
            }
          ],
          "sensorId": 123,
          "description": "<string>",
          "hardwareSerialNumber": "<string>",
          "sensorName": "<string>"
        }
      ]
    }
  ],
  "resourceControllers": [
    {
      "hardwareSerialNumber": "<string>",
      "id": 123,
      "resourceId": 123,
      "orderNo": 123,
      "ioType": "Digital",
      "ioDirection": "Input",
      "trueValue": "<string>",
      "falseValue": "<string>",
      "description": "<string>",
      "controllerName": "<string>",
      "controllerId": 123,
      "partitions": [
        {
          "name": "<string>",
          "no": 123
        }
      ]
    }
  ],
  "resourceSubscriptionId": 123,
  "subscriptionDocumentNo": "<string>",
  "resourceType": "Device",
  "deviceSubType": "<string>"
}

Headers

Authorization
string
required

Access Token

OrganizationId
string
required

Organization ID

Body

application/json

getSensorsControllersParams

pinCode
string

pinCode

Example:

"AES-256 encrypted pin code"

resourceId
integer<int64>

Alarm Panel ID

Example:

60

Response

Panel Response with sensors, controllers and partitions

Get Resource Response Model

resourceId
integer<int64>
networkId
string
resourceName
string
enabled
boolean
modelName
string
brandName
string
treePath
string
orgId
integer<int64>
resourceSensors
ResourceSensorsGroupedByLabel · object[]
resourceControllers
ResourceControllerData · object[]
resourceSubscriptionId
integer<int64>
subscriptionDocumentNo
string
resourceType
enum<string>
Available options:
Device,
ThirdParty,
Virtual,
Gateway
deviceSubType
string