PHP
$data = array (
'intercom' => 0,
'flat' => 0,
'user' => 0,
'is_open_door_key' => true,
'is_open_door_code' => true,
'is_open_door_app' => true,
'is_open_door_face' => true,
);
$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/admin/intercoms/{intercom}/flats/{flat}/users/{user}', false, $context);