POST
/
api
/
v2
/
documents
/
presigned-upload-url
import os
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
response = client.v2.documents.presigned_upload_url(
    file_name="fileName",
    mime_type="application/zip",
)
print(response.id)
{
  "id": "<string>",
  "fileName": "<string>",
  "presignedUrl": "<string>"
}

Body

application/json

Response

200
application/json

Successfully generated presigned URL and initial document metadata.