26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Unlink devices from an access point

Unlinks one or more devices from an access point. The request body is an array of device objects. For an intercom (intercom) the id field contains the numeric intercom ID; for a BLE controller (openy_controller) it contains the controller UUID. For a camera (camera) it contains the numeric camera ID or camera UUID. The devices themselves aren't deleted. Returns the access point with updated device lists.

JSON
[
    {
        "id": 10,
        "type": "intercom"
    },
    {
        "id": "00000000-0000-0000-0000-000000000003",
        "type": "openy_controller"
    }
]

POST  /api/v1/billing/access-points/{access_point}/detach

Method parameters

string access_point  required , (path) Access point UUID.


mixed array, []* Array of device objects to unlink.


mixed string, [].type* Device type. Allowed values: `intercom`, `openy_controller`, `camera`.

200  OK

Devices unlinked. Returns the access point with its remaining devices (see Get access point information).

422  Unprocessable Entity

Validation error. See VMS Billing / General information / External system validation

JSON
{
    "message": "Validation failed",
    "errors": {
        "0.type": [
            "The selected 0.type is invalid."
        ]
    }
}
cURL
Bash
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/access-points/{access_point}/detach' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "access_point": "string",
    "array": "",
    "string": ""
}'
PHP
PHP
$data = array (
  'access_point' => 'string',
  'array' => '',
  'string' => '',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/access-points/{access_point}/detach', false, $context);