Redigera

Dela via


uploadSession resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents information for an iterative process to upload large files to:

  • OneDrive
  • OneDrive for work or school
  • SharePoint document libraries
  • Outlook event and message items as attachments
  • Universal Print printDocument items

Properties

Property Type Description
expirationDateTime DateTimeOffset The date and time in UTC that the upload session expires. The complete file must be uploaded before this expiration time is reached.
nextExpectedRanges String collection When uploading files to document libraries, this property is a collection of byte ranges that the server is missing for the file. These ranges are zero-indexed and of the format, "{start}-{end}" (for example "0-26" to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value "{start}", the location in the file where the next upload should begin.
uploadUrl String The URL endpoint that accepts PUT requests for byte ranges of the file.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "uploadUrl": "String",
  "expirationDateTime": "String (timestamp)",
  "nextExpectedRanges": ["String"]
}