referenceAttachment resource type

A link to a 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, 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.
id String The attachment ID. Read-only.
isInline Boolean Set to true if the attachment appears inline in the body of the embedding object.
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'
name String The text that is displayed below the icon representing the embedded attachment. This does not need to be the actual file name.
size Int32 The size of the attachment in bytes.

Relationships

None

JSON representation

Here is a JSON representation of the resource

{
  "contentType": "string",
  "id": "string (identifier)",
  "isInline": true,
  "lastModifiedDateTime": "String (timestamp)",
  "name": "string",
  "size": 1024
}