Changes data

quotecloud_prepare_document_asset_upload

Reserve an image, PDF, video, or file asset in QuoteCloud storage and return a 30-minute presigned S3 PUT URL. Use this for a local file: upload the bytes with the exact returned Content-Type header, then call quotecloud_finalize_document_asset_upload before using the asset in document content. To embed a PDF as document pages, pass the finalized assetId to quotecloud_insert_pdf_pages. Pass a stable clientId (e.g. the file name plus revision) to make retries safe: repeating the call reuses the same asset, and once it is finalized returns it with alreadyUploaded:true and no upload URL.

Inputs

documentRefRequired
QuoteCloud document display ID. string
fileNameRequired
string
fileTypeRequired
one of: image, pdf, video, file
fileSizeRequired
number
contentTypeRequired
string
clientIdOptional
Caller idempotency key, unique per file within the document. Retries with the same clientId return the same asset instead of creating another. string