taskFileAttachment resource type

Namespace: microsoft.graph

Represents a file, such as a text file or Word document, attached to a todoTask. When you create a file attachment on a task, include "@odata.type": "#microsoft.graph.taskFileAttachment" and the properties name and contentBytes.

Inherits from attachmentBase.

Methods

Method Return type Description
List attachments taskFileAttachment collection Get a list of the taskFileAttachment objects and their properties.
Create attachment taskFileAttachment collection Add a new taskFileAttachment object to a todoTask.
Create upload session taskFileAttachment collection Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask.
Get attachment taskFileAttachment Read the properties and relationships of a taskFileAttachment object.
Delete attachment None Delete a taskFileAttachment object.

Properties

Property Type Description
contentBytes Binary The base64-encoded contents of the file.
contentType String The content type of the attachment. Inherited from attachmentBase.
id String The ID of the attachment. Inherited from entity.
lastModifiedDateTime DateTimeOffset The date and time when the attachment was last modified. Inherited from attachmentBase.
name String The name of the text displayed under the icon that represents the embedded attachment. This does not need to be the actual file name. Inherited from attachmentBase.
size Int32 The size in bytes of the attachment. Inherited from attachmentBase.

Relationships

None.

JSON representation

The following is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.taskFileAttachment",
  "contentBytes": "Binary",
  "contentType": "String",
  "id": "String (identifier)",
  "lastModifiedDateTime": "String (timestamp)",
  "name": "String",
  "size": "Int32"
}