Generates pre-signed URLs for uploading raw data files to Atomscale using multi-part upload. Each part gets its own pre-signed URL.
Original filename with extension (e.g., rheed_video.mp4)
Number of upload parts to generate URLs for
Staging bucket type: core, instrument, or stream
Physical sample UUID to associate with the upload
Name for a new physical sample to create and associate
Notes to attach to the data entry
Data stream type (e.g., rheed, optical, metrology)
Response
Returns an array of pre-signed upload URL objects, one per part.
Upload session identifier
Server-assigned filename for this part
Pre-signed URL for uploading this part (PUT request)
Data entry UUID created for this upload
from atomscale import Client
client = Client(api_key="YOUR_API_KEY")
# The SDK handles multi-part upload automatically
client.upload(files=["rheed_video.mp4"])
[
{
"upload_id": "abc123",
"new_filename": "staged_rheed_video.mp4",
"url": "https://storage.atomscale.ai/uploads/staged_rheed_video.mp4?token=...",
"data_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"part": 1
}
]