26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Update an access point

Update an access point

PATCH  /api/v1/billing/access-points/{access_point}

Users who can view the access point receive a WebSocket notification about the update.

JSON
{
    "name": "Main entrance"
}

Method parameters

string access_point  required , (path) Access point UUID.


string name, New access point name. Maximum 255 characters; can't be empty.

200  OK

Access point updated successfully. Linked devices are returned in the same format as in Get access point information

JSON
{
    "uuid": "00000000-0000-0000-0000-000000000001",
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-01-01T00:00:00.000000Z",
    "name": "Main entrance",
    "type": "universal_zone",
    "created_by": null,
    "intercoms_count": 0,
    "ble_devices_count": 0,
    "actuator_devices_count": 0,
    "cameras_count": 0,
    "intercoms": [],
    "openy_controllers": [],
    "cameras": []
}

404  Not Found

Access point not found

JSON
{
    "error": "resource not found"
}

422  Unprocessable Entity

Validation error. For more information, see General information > Validation.

cURL
Bash
curl -k --request PATCH \
	--url 'https://your-domain/api/v1/billing/access-points/{access_point}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "access_point": "string",
    "name": "string"
}'
PHP
PHP
$data = array (
  'access_point' => 'string',
  'name' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'PATCH',
		'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}', false, $context);