POST
/
windows
/
files
/
upload
/
{instance_id}
Python (SDK)
import os
from skylight_sdk import Skylight


with Skylight(
    apikey=os.getenv("SKYLIGHT_APIKEY", ""),
) as skylight:

    res = skylight.files.upload(instance_id="<id>", s3_url="https://needy-mallard.info/", file_name="example.file")

    # Handle response
    print(res)
{
  "file_path": "C:\\Users\\Public\\Downloads\\file.pdf",
  "message": "File uploaded successfully",
  "status": "success"
}

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

instance_id
string
required

Body

application/json

Response

200
application/json

File uploaded successfully to VM

Response when a file is successfully uploaded to a VM