Configure Network Interlock

There are three possible configurations that can be modified:

  • Enable and disable network interlocking;
  • Enable and disable the option to bypass network interlocking when opening the door via API;
  • Enable and disable the option to bypass network interlocking when opening the door via REX.

It is worth noting that for the network interlocking to work, it is necessary to register one or more remote devices using the API or the device interfaces.

The HTTP method used is POST and the contentType is application/json

POST /set_network_interlock.fcgi

Parameters

  • The parameter will be a JSON Object with the three interlocking configurations.
  • Note that for any request, all three configurations must be sent.

Response

  • The response will be an empty JSON Object if the configuration change is successful, or with an error message if not.

Example Request

Enables network interlock without enabling the options to bypass the interlock when opening the door via REX or API:

$.ajax({
  url: "/set_network_interlock.fcgi?session=" + session,
  type: 'POST',
  contentType: 'application/json',
  data: JSON.stringify({
    "interlock_enabled" : 1,
    "api_bypass_enabled" : 0,
    "rex_bypass_enabled" : 0
  })
});

Enables the option to bypass the interlock when opening the door via API:

$.ajax({
  url: "/set_network_interlock.fcgi?session=" + session,
  type: 'POST',
  contentType: 'application/json',
  data: JSON.stringify({
    "interlock_enabled" : 1,
    "api_bypass_enabled" : 1,
    "rex_bypass_enabled" : 0
  })
});

Enables the option to bypass the interlock when opening the door via both API and REX:

$.ajax({
  url: "/set_network_interlock.fcgi?session=" + session,
  type: 'POST',
  contentType: 'application/json',
  data: JSON.stringify({
    "interlock_enabled" : 1,
    "api_bypass_enabled" : 1,
    "rex_bypass_enabled" : 1
  })
});

Disables network interlocking:

$.ajax({
  url: "/set_network_interlock.fcgi?session=" + session,
  type: 'POST',
  contentType: 'application/json',
  data: JSON.stringify({
    "interlock_enabled" : 0,
    "api_bypass_enabled" : 0,
    "rex_bypass_enabled" : 0
  })
});