You can use the File API to upload files, such as a scan data import, to File content must be sent as form data. If the file is encrypted, you must use the no_enc parameter with the value of 1.

Important! Maximum upload file size is 4 GB.

This example illustrates how to upload an encrypted file using cURL:

curl -H X-APIKeys: accessKey=<access_key>;secretKey=<secret_key> -F [email protected]~/data/nessus.db -X POST

This example illustrates how you can upload the file with the pyTenable Python library:

python>>> with open(`~/data/nessus.db`) as fobj: file_id = tio.files.upload(fobj,True)