Skip to main content
Skip table of contents

Upload a summary file with keys, apartments, users

Upload a summary file with keys, apartments, users

Uploading an XLSX file to save a summary list of keys, apartments, and users for a given intercom. A notification about file downloading will be sent to the push channel token.ID

(section "Push about successful loading of the summary file key|apartment|intercom user")

If there is a data error in the file, a new file will be generated with cells marked with an error and a link to this file will be sent to the push channel token.ID

(section "Push about unsuccessful loading of the summary file key|apartment|intercom user")

If in the file, if settings for limiting viewing or opening the door are not specified for users, then the settings from the intercom will be applied.

JSON
{
    "file": "file.xlsx",
    "hash": "98c8ae8cd75194498f53fd37afb89625"
}

POST /api/admin/v1/intercoms/{intercom}/upload

Parameters

int intercom, Unique identifier of the intercom


file file, Summary file key|apartment|user


string hash, Temporary hash key for the file that was downloaded

201 Created

Warning message that existing data will be deleted if the file is downloaded.

JSON
{
    "file_uploaded": true,
    "hash": "68227b6d2954b043f0f939413cf53bb0",
    "expires_at": "2023-05-17T08:28:51.469496Z"
}

204 No Content

Successful response

401 Unauthorized

Authorization token not sent or not valid

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/intercoms/{intercom}/upload' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0,
    "file": "file",
    "hash": "string"
}'
PHP
PHP
$data = array (
  'intercom' => 0,
  'file' => 'file',
  'hash' => '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/admin/v1/intercoms/{intercom}/upload', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.