upload_protect_file
Upload audio or image asset files to UniFi Protect NVR storage for custom alerts or visuals. Specify host, file type, filename, and base64 content.
Instructions
Upload a Protect device asset file. WARNING: Uploads asset file to NVR storage. Overwriting system files may not be reversible.
host: console name, ID, or composite ID (MAC:numericId format). file_type: Protect asset category. 'sounds' and 'images' are the known categories; the value selects the upload target path (/files/{file_type}). The category is not validated on read-back, so pass a known category exactly. filename: name of the file to upload (e.g. 'alert.mp3'). file_content_base64: base64-encoded file content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| filename | Yes | ||
| file_type | Yes | ||
| file_content_base64 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||