referenceAttachment resource type

A link to a folder or file (such as a text file or Word document) on a OneDrive for Business cloud drive, or other supported storage locations, attached to an event, message, Outlook task, or post .

Derived from attachment.

Methods

Method Return Type Description
Get referenceAttachment Read properties and relationships of referenceAttachment object.
Delete None Delete referenceAttachment object.

Properties

Property Type Description
contentType String The content type of the attachment. Optional.
id String The attachment ID. Read-only.
isFolder Boolean Specifies whether the attachment is a link to a folder. Must set this to true if sourceUrl is a link to a folder. Optional.
isInline Boolean Set to true if the attachment appears inline in the body of the embedding object. Optional.
lastModifiedDateTime DateTimeOffset The date and time when the attachment was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Optional.
name String The text that is displayed below the icon representing the embedded attachment. This does not need to be the actual file name. Required.
permission ReferenceAttachmentPermissions Specifies the permissions granted for the attachment by the type of provider in providerType. Possible values are: other, view, edit, anonymousView, anonymousEdit, organizationView, organizationEdit. Optional.
previewUrl String Applies to only a reference attachment of an image - URL to get a preview image. Use thumbnailUrl and previewUrl only when sourceUrl identifies an image file. Optional.
providerType ReferenceAttachmentProviders The type of provider that supports an attachment of this contentType. Possible values are: other, oneDriveBusiness, oneDriveConsumer, dropbox. Optional.
size Int32 The size of the attachment in bytes. Optional.
sourceUrl String URL to get the attachment content. If this is a URL to a folder, then for the folder to be displayed correctly in Outlook or Outlook on the web, set isFolder to true. Required.
thumbnailUrl String Applies to only a reference attachment of an image - URL to get a thumbnail image. Use thumbnailUrl and previewUrl only when sourceUrl identifies an image file. Optional.

Relationships

None

JSON representation

Here is a JSON representation of the resource

{
  "contentType": "string",
  "id": "string (identifier)",
  "isFolder": true,
  "isInline": true,
  "lastModifiedDateTime": "String (timestamp)",
  "name": "string",
  "permission": "string",
  "previewUrl": "string",
  "providerType": "string",
  "size": 1024,
  "sourceUrl": "string",
  "thumbnailUrl": "string"
}