Skip to main content
Version: 2.0

Devices

Introduction

Devices represent doors and gates (along with their accompanying readers), Aperio wireless locks, turnstiles, alarms, elevator buttons, and any other devices that can be controlled with relays. Devices are typically configured manually in pdk.io, but they can also be configured through the API.

The device object

{
"id": "35347d04-a99c-4a58-ab32-1317b832507a",
"name": "Test Device",
"connection": {
"id": "767a1e35-bd34-4858-9130-a0a1900438ed",
"name": "Test Connection",
"type": "usb"
},
"port": 1,
"partition": [
{
"id": "619cceb0-ac58-4b15-a8ec-32efcb0476ba",
"name": "Default",
"default": true
}
],
"type": "primaryReader",
"publicIcon": "swingingDoor",
"inputTypes": ["wiegand", "unencryptedOsdp", "encryptedOsdp"],
"osdpAddress": 0,
"readerType": "red",
"readerSerialNumber": "032500000001773C",
"supportBleCredentials": true,
"securedReadsOnly": false,
"delay": 0,
"dwell": 30,
"dps": false,
"propAlarm": false,
"propDelay": 0,
"rex": false,
"forcedAlarm": false,
"autoOpenAfterFirstAllow": false,
"hardwareVersion": "red1cn.d",
"serialNumber": "8003323",
"firmwareVersion": "1.1.46",
"created": "2023-09-27 23:28:33"
}
PropertyTypeDescription
idStringThe device ID.
nameStringThe device name.
connectionObjectThe connection associated with this device.
portIntegerThe port number.
partitionObject[]An array of partitions that include this device.
typeStringThe device type. Possible values include primaryReader, additionalReader, ioDevice, premiumIoDevice, elevatorReader, additionalElevatorReader, and floorRelay.
publicIconStringThe device icon. Possible values include swingingDoor, swingingGate, rollUpDoor, alarm, light, fan, panicButton, sprinkler, and other.
primaryReaderObjectThe device associated with the primary reader. This only applies if type is set to additionalReader.
inputTypesString[]An array of allowed input types. Possible values include wiegand, unencryptedOsdp, and encryptedOsdp.
osdpAddressIntegerThe OSDP address. This only applies if inputTypes includes unencryptedOsdp or encryptedOsdp. Possible values include 0, 1, 2, and 3.
wirelessAddressStringThe wireless address of the device. This only applies if the connection type is set to wirelessCoordinator.
readerTypeStringThe reader type. Possible values include standard, touch, and red.
readerSerialNumberStringThe reader serial number.
supportBleCredentialsBooleanWhether the device supports Bluetooth credentials.
securedReadsOnlyBooleanWhether the device only supports high-security credentials.
delayIntegerThe amount of time (in tenths of a second) the relay will delay before actuating.
dwellIntegerThe amount of time (in tenths of a second) the relay will remain actuated.
dpsBooleanWhether the door position sensor (DPS) is enabled. This only applies if a DPS is installed.
propAlarmBooleanWhether the prop alarm is enabled, which triggers an alarm if a device is left open. This only applies if dps is set to true.
propDelayIntegerThe amount of time (in seconds) a device must be left open before a prop alarm is triggered. This only applies if propAlarm is set to true.
rexBooleanWhether the request to exit (REX) sensor is enabled. This only applies if a REX sensor is installed.
forcedAlarmBooleanWhether the forced alarm is enabled, which triggers an alarm if a device is forced opened. This only applies if dps is set to true.
autoOpenAfterFirstAllowBooleanWhether auto open will be enabled after the first successful access event.
authenticationPolicyStringThe authentication policy for this device. Possible values include null, cardOnly, pinOnly, cardOrPin, and cardAndPin (for two-factor authentication). Note that card refers to all types of credentials (not just cards). If a policy is set for both a rule and its corresponding device, the more restrictive policy will be enforced.
hardwareVersionStringThe controller hardware version.
serialNumberStringThe controller serial number.
firmwareVersionStringThe controller firmware version.
createdStringThe device creation timestamp.

Basic Endpoints

Create a device

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices HTTP/1.1
Authorization: Bearer {{system_token}}
Content-Type: application/json

{
"name": "Test Device",
"type": "primaryReader",
"publicIcon": "swingingDoor",
"connection": "767a1e35-bd34-4858-9130-a0a1900438ed",
"port": 1
}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
system_tokenHeaderStringYesA valid system token.
nameBodyStringYesThe device name. This must be unique within a system. The maximum length is 70 characters.
typeBodyStringYesThe device type. Possible values include primaryReader, additionalReader, ioDevice, premiumIoDevice, elevatorReader, additionalElevatorReader, and floorRelay.
publicIconBodyStringYesThe device icon. Possible values include swingingDoor, swingingGate, rollUpDoor, alarm, light, fan, panicButton, sprinkler, and other.
connectionBodyStringYesThe connection ID.
portBodyIntegerYesThe port number. This port must not be occupied by another device.
primaryReaderBodyIntegerNoThe primary reader ID. This only applies if type is set to additionalReader.
inputTypesBodyString[]NoAn array of allowed input types. Possible values include wiegand, unencryptedOsdp, and encryptedOsdp. All types are allowed by default.
osdpAddressBodyIntegerNoThe OSDP address. This only applies if inputTypes includes unencryptedOsdp or encryptedOsdp. Possible values include 0, 1, 2, and 3.
wirelessAddressBodyStringNoThe wireless address of the device. This only applies if the connection type is set to wirelessCoordinator.
readerTypeBodyStringNoThe reader type. Possible values include standard, touch, and red. The default is standard.
readerSerialNumberBodyStringNoThe reader serial number.
supportBleCredentialsBodyBooleanNoWhether the device should support Bluetooth credentials.
securedReadsOnlyBodyBooleanNoWhether the device should only support high-security credentials.
delayBodyIntegerNoThe amount of time (in tenths of a second) the relay should delay before actuating. The minimum value is 0 (default) and the maximum value is 9999.
dwellBodyIntegerNoThe amount of time (in tenths of a second) the relay should remain actuated. The minimum value is 1 and the maximum value is 9999. The default value is 30 (3 seconds).
dpsBodyBooleanNoWhether the door position sensor (DPS) should be enabled. This only applies if a DPS is installed. The default value is false.
propAlarmBodyBooleanNoWhether the prop alarm should be enabled, which triggers an alarm if a device is left open. This only applies if dps is set to true. The default value is false.
propDelayBodyIntegerNoThe amount of time (in seconds) a device must be left open before a prop alarm is triggered. This only applies if propAlarm is set to true. The minimum value is 0 (default) and the maximum value is 9999.
rexBodyBooleanNoWhether the request to exit (REX) sensor should be enabled. This only applies if a REX sensor is installed. The default value is false.
forcedAlarmBodyBooleanNoWhether the forced alarm should be enabled, which triggers an alarm if a device is forced opened. This only applies if dps is set to true. The default value is false.
autoOpenAfterFirstAllowBodyBooleanNoWhether auto open should be enabled after the first successful access event. The default value is false.
authenticationPolicyBodyStringNoThe authentication policy for this device. Possible values include null (default), cardOnly, pinOnly, cardOrPin, and cardAndPin (for two-factor authentication). Note that card refers to all types of credentials (not just cards). If a policy is set for both a rule and its corresponding device, the more restrictive policy will be enforced.

Response

The response contains the ID of the newly created device object.

HTTP/1.1 200 OK
Content-Type: application/json

{
"id": "35347d04-a99c-4a58-ab32-1317b832507a"
}

Retrieve a device

Request

GET https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}} HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathIntegerYesThe device ID.
system_tokenHeaderStringYesA valid system token.

Response

The response contains a device object.

HTTP/1.1 200 OK
Content-Type: application/json

{
"id": "35347d04-a99c-4a58-ab32-1317b832507a",
"name": "Test Device",
"connection": {
"id": "767a1e35-bd34-4858-9130-a0a1900438ed",
"name": "Test Connection",
"type": "usb"
},
"port": 1,
"partition": [
{
"id": "619cceb0-ac58-4b15-a8ec-32efcb0476ba",
"name": "Default",
"default": true
}
],
"type": "primaryReader",
"publicIcon": "swingingDoor",
"inputTypes": ["wiegand", "unencryptedOsdp", "encryptedOsdp"],
"osdpAddress": 0,
"readerType": "red",
"readerSerialNumber": "032500000001773C",
"supportBleCredentials": true,
"securedReadsOnly": false,
"delay": 0,
"dwell": 30,
"dps": false,
"propAlarm": false,
"propDelay": 0,
"rex": false,
"forcedAlarm": false,
"autoOpenAfterFirstAllow": false,
"hardwareVersion": "red1cn.d",
"serialNumber": "8003323",
"firmwareVersion": "1.1.46",
"created": "2023-09-27 23:28:33"
}

Update a device

Request

PUT https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}} HTTP/1.1
Authorization: Bearer {{system_token}}
Content-Type: application/json

{
"name": "Test Device",
"type": "primaryReader",
"publicIcon": "swingingDoor",
"connection": "767a1e35-bd34-4858-9130-a0a1900438ed",
"port": 1,
"delay": 0,
"dwell": 3,
"dps": false,
"rex": false,
"autoOpenAfterFirstAllow": false,
"authenticationPolicy": "cardOrPin"
}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.
nameBodyStringYesThe device name. This must be unique within a system. The maximum length is 70 characters.
typeBodyStringYesThe device type. Possible values include primaryReader (default), additionalReader, ioDevice, premiumIoDevice, elevatorReader, additionalElevatorReader, and floorRelay.
publicIconBodyStringYesThe device icon. Possible values include swingingDoor (default), swingingGate, rollUpDoor, alarm, light, fan, panicButton, sprinkler, and other.
connectionBodyStringYesThe connection ID.
portBodyIntegerYesThe port number. This port must not be occupied by another device.
primaryReaderBodyIntegerNoThe primary reader ID. This only applies if type is set to additionalReader.
inputTypesBodyString[]NoAn array of allowed input types. Possible values include wiegand, unencryptedOsdp, and encryptedOsdp. All types are allowed by default.
osdpAddressBodyIntegerNoThe OSDP address. This only applies if inputTypes includes unencryptedOsdp or encryptedOsdp. Possible values include 0, 1, 2, and 3.
wirelessAddressBodyStringNoThe wireless address of the device. This only applies if the connection type is set to wirelessCoordinator.
readerTypeBodyStringNoThe reader type. Possible values include standard, touch, and red. The default is standard.
readerSerialNumberBodyStringNoThe reader serial number.
supportBleCredentialsBodyBooleanNoWhether the device should support Bluetooth credentials.
securedReadsOnlyBodyBooleanNoWhether the device should only support high-security credentials.
delayBodyIntegerYesThe amount of time (in tenths of a second) the relay should delay before actuating. The minimum value is 0 (default) and the maximum value is 9999.
dwellBodyIntegerYesThe amount of time (in tenths of a second) the relay should remain actuated. The minimum value is 1 and the maximum value is 9999. The default value is 30 (3 seconds).
dpsBodyBooleanYesWhether the door position sensor (DPS) should be enabled. This only applies if a DPS is installed. The default value is false.
propAlarmBodyBooleanNoWhether the prop alarm should be enabled, which triggers an alarm if a device is left open. This only applies if dps is set to true. The default value is false.
propDelayBodyIntegerNoThe amount of time (in seconds) a device must be left open before a prop alarm is triggered. This only applies if propAlarm is set to true. The minimum value is 0 (default) and the maximum value is 9999.
rexBodyBooleanYesWhether the request to exit (REX) sensor should be enabled. This only applies if a REX sensor is installed. The default value is false.
forcedAlarmBodyBooleanNoWhether the forced alarm should be enabled, which triggers an alarm if a device is forced opened. This only applies if dps is set to true. The default value is false.
autoOpenAfterFirstAllowBodyBooleanYesWhether auto open should be enabled after the first successful access event. The default value is false.
authenticationPolicyBodyStringYesThe authentication policy for this device. Possible values include null (default), cardOnly, pinOnly, cardOrPin, and cardAndPin (for two-factor authentication). Note that card refers to all types of credentials (not just cards). If a policy is set for both a rule and its corresponding device, the more restrictive policy will be enforced.

Response

HTTP/1.1 204 No Content

Delete a device

Request

DELETE https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}} HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.

Response

HTTP/1.1 204 No Content

List all devices on a system

Request

GET https://systems.pdk.io/{{system_id}}/devices HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
includeQueryStringNoA comma-delimited list of additional properties to include in the response. Available properties include cloudNode and connection.
pageQueryIntegerNoThe zero-based page number used for pagination. The default value is 0.
per_pageQueryIntegerNoThe number of items per page used for pagination. The default value is 10 and the maximum value is 100.
system_tokenHeaderStringYesA valid system token.

Response

The response contains an array of device objects.

HTTP/1.1 200 OK
Content-Type: application/json

[
{
"id": "35347d04-a99c-4a58-ab32-1317b832507a",
"name": "Test Device",
"connection": {
"id": "767a1e35-bd34-4858-9130-a0a1900438ed",
"name": "Test Connection",
"type": "usb"
},
"port": 1,
"partition": [
{
"id": "619cceb0-ac58-4b15-a8ec-32efcb0476ba",
"name": "Default",
"default": true
}
],
"type": "primaryReader",
"publicIcon": "swingingDoor",
"inputTypes": ["wiegand", "unencryptedOsdp", "encryptedOsdp"],
"osdpAddress": 0,
"readerType": "red",
"readerSerialNumber": "032500000001773C",
"supportBleCredentials": true,
"securedReadsOnly": false,
"delay": 0,
"dwell": 30,
"dps": false,
"propAlarm": false,
"propDelay": 0,
"rex": false,
"forcedAlarm": false,
"autoOpenAfterFirstAllow": false,
"hardwareVersion": "red1cn.d",
"serialNumber": "8003323",
"firmwareVersion": "1.1.46",
"created": "2023-09-27 23:28:33"
}
]

List all devices on a cloud node

Request

GET https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
includeQueryStringNoA comma-delimited list of additional properties to include in the response. Available properties include connection and partition.
pageQueryIntegerNoThe zero-based page number used for pagination. The default value is 0.
per_pageQueryIntegerNoThe number of items per page used for pagination. The default value is 10 and the maximum value is 100.
system_tokenHeaderStringYesA valid system token.

Response

The response contains an array of device objects.

HTTP/1.1 200 OK
Content-Type: application/json

[
{
"id": "35347d04-a99c-4a58-ab32-1317b832507a",
"name": "Test Device",
"connection": {
"id": "767a1e35-bd34-4858-9130-a0a1900438ed",
"name": "Test Connection",
"type": "usb"
},
"port": 1,
"partition": [
{
"id": "619cceb0-ac58-4b15-a8ec-32efcb0476ba",
"name": "Default",
"default": true
}
],
"type": "primaryReader",
"publicIcon": "swingingDoor",
"inputTypes": ["wiegand", "unencryptedOsdp", "encryptedOsdp"],
"osdpAddress": 0,
"readerType": "red",
"readerSerialNumber": "032500000001773C",
"supportBleCredentials": true,
"securedReadsOnly": false,
"delay": 0,
"dwell": 30,
"dps": false,
"propAlarm": false,
"propDelay": 0,
"rex": false,
"forcedAlarm": false,
"autoOpenAfterFirstAllow": false,
"hardwareVersion": "red1cn.d",
"serialNumber": "8003323",
"firmwareVersion": "1.1.46",
"created": "2023-09-27 23:28:33"
}
]

List all devices on a partition

Request

GET https://systems.pdk.io/{{system_id}}/partitions/{{partition_id}}/devices HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
partition_idPathStringYesThe partition ID.
pageQueryIntegerNoThe zero-based page number used for pagination. The default value is 0.
per_pageQueryIntegerNoThe number of items per page used for pagination. The default value is 10 and the maximum value is 100.
system_tokenHeaderStringYesA valid system token.

Response

The response contains an array of device objects.

HTTP/1.1 200 OK
Content-Type: application/json

[
{
"id": "35347d04-a99c-4a58-ab32-1317b832507a",
"name": "Test Device",
"connection": {
"id": "767a1e35-bd34-4858-9130-a0a1900438ed",
"name": "Test Connection",
"type": "usb"
},
"port": 1,
"partition": [
{
"id": "619cceb0-ac58-4b15-a8ec-32efcb0476ba",
"name": "Default",
"default": true
}
],
"type": "primaryReader",
"publicIcon": "swingingDoor",
"inputTypes": ["wiegand", "unencryptedOsdp", "encryptedOsdp"],
"osdpAddress": 0,
"readerType": "red",
"readerSerialNumber": "032500000001773C",
"supportBleCredentials": true,
"securedReadsOnly": false,
"delay": 0,
"dwell": 30,
"dps": false,
"propAlarm": false,
"propDelay": 0,
"rex": false,
"forcedAlarm": false,
"autoOpenAfterFirstAllow": false,
"hardwareVersion": "red1cn.d",
"serialNumber": "8003323",
"firmwareVersion": "1.1.46",
"created": "2023-09-27 23:28:33"
}
]

List all device states

Request

GET https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/states HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
pageQueryIntegerNoThe zero-based page number used for pagination. The default value is 0.
per_pageQueryIntegerNoThe number of items per page used for pagination. The default value is 10 and the maximum value is 100.
system_tokenHeaderStringYesA valid system token.

Response

The response contains an array of device states.

HTTP/1.1 200 OK
Content-Type: application/json

[
{
"id": "35347d04-a99c-4a58-ab32-1317b832507a",
"name": "Test Device",
"dps": false,
"rex": false,
"connection": "767a1e35-bd34-4858-9130-a0a1900438ed",
"wirelessAddress": "",
"port": 1,
"type": "primaryReader",
"publicIcon": "swingingDoor",
"rexOn": false,
"dpsOpen": false,
"forcedAlarmOn": false,
"forceOpen": false,
"forceClose": false,
"forceCloseExpiration": null,
"relayOpen": false,
"autoOpen": false,
"autoOpenOverride": false,
"propAlarmOn": false,
"communicationLost": false,
"controllerIssues": false,
"circuitBreaker": {},
"channelLock": null
}
]

Commands

Open and close a device as a holder

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/virtual-read HTTP/1.1
Authorization: Bearer {{system_token}}
Content-Type: application/json

{
"holderId": "8b37106e-fb08-4700-b14d-70a3967b5086"
}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.
holderIdBodyStringYesThe holder ID.

Response

HTTP/1.1 204 No Content

Open and close a device

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/try-open HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_tokenHeaderStringYesA valid system token.
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
dwellBodyIntegerNoThe amount of time (in tenths of a second) the device will remain open before closing. This value will override the dwell time configured in pdk.io. The minimum value is 1 and the maximum value is 5400.

Response

HTTP/1.1 204 No Content

Open a device

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/open HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.

Response

HTTP/1.1 204 No Content

Open a device after a delay

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/delay-open HTTP/1.1
Authorization: Bearer {{system_token}}
Content-Type: application/json

{
"delay": 30
}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.
delayBodyIntegerYesThe amount of delay (in tenths of a second) before the device opens. The minimum value is 0 and the maximum value is 9999.

Response

HTTP/1.1 204 No Content

Close a device

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/close HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.

Response

HTTP/1.1 204 No Content

Close a device after a delay

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/delay-close HTTP/1.1
Authorization: Bearer {{system_token}}
Content-Type: application/json

{
"delay": 30
}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.
delayBodyIntegerYesThe amount of delay (in tenths of a second) before the device closes. The minimum value is 0 and the maximum value is 9999.

Response

HTTP/1.1 204 No Content

Toggle a device's state

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/force-toggle HTTP/1.1
Authorization: Bearer {{system_token}}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.

Response

HTTP/1.1 204 No Content

Set a device's do not disturb state

Request

POST https://systems.pdk.io/{{system_id}}/cloud-nodes/{{cloud_node_id}}/devices/{{device_id}}/dnd HTTP/1.1
Authorization: Bearer {{system_token}}
Content-Type: application/json

{
"state": "on"
}
ParameterLocationTypeRequiredDescription
system_idPathStringYesThe system ID.
cloud_node_idPathStringYesThe cloud node ID.
device_idPathStringYesThe device ID.
system_tokenHeaderStringYesA valid system token.
stateBodyStringYesThe DND state. Possible values include on and off.

Response

HTTP/1.1 204 No Content