attachmentItem 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 attributes of an item to be attached.

Properties

Property Type Description
attachmentType String The type of attachment. Possible values are: file, item, reference. Required.
contentId String The CID or Content-Id of the attachment for referencing in case of in-line attachments using <img src="cid:contentId"> tag in HTML messages. Optional.
contentType String The nature of the data in the attachment. Optional.
isInline Boolean true if the attachment is an inline attachment; otherwise, false. Optional.
name String The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required.
size Int64 The length of the attachment in bytes. Required.

JSON representation

The following JSON representation shows the resource type.

{
  "attachmentType": "String",
  "contentId": "String",
  "contentType": "String",
  "isInline": true,
  "name": "String",
  "size": 1024
}