from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.presigned_upload_url(
file_name="fileName",
mime_type="application/zip",
)
print(response.id)
{
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>"
}
Generates a presigned URL that can be used to directly upload a file to storage. Returns the URL and document metadata.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.presigned_upload_url(
file_name="fileName",
mime_type="application/zip",
)
print(response.id)
{
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>"
}
Successfully generated presigned URL and initial document metadata.