Skip to main content

DocumentUploadStarted

Returned when the file was accepted and there is somewhere to send it.

type DocumentUploadStarted {
document: Document!
uploadUrl: String!
expiresAt: DateTime!
}

Fields

DocumentUploadStarted.document ● Document! non-null object

The record that is now waiting for the file, in state PENDING_UPLOAD.

DocumentUploadStarted.uploadUrl ● String! non-null scalar

Where to send the file, with a single PUT carrying the bytes and the header x-ms-blob-type: BlockBlob. The address grants permission to write this one file and nothing else — it cannot be used to read anything back, including the file just sent.

DocumentUploadStarted.expiresAt ● DateTime! non-null scalar

When the address stops being accepted, in UTC. Ask again for a new one after that; nothing is lost, but the record stays PENDING_UPLOAD until a file arrives.

Implemented By

StartDocumentUploadResult union