Microsoft
You can add related content to an event, message, or post in the form of an attachment.
attachment is the base resource for the following derived types of attachments:
The following methods apply to any of the derived types of attachments (fileAttachment, itemAttachment, or referenceAttachment).
| Method | Return Type | Description |
|---|---|---|
| Get attachment | attachment | Read the properties and relationships of an attachment, attached to an event, message, or post. |
| Add attachment to an event | attachment | Add a file, item, or link attachment to an event. |
| Add attachment to a message | attachment | Add a file, item, or link attachment to a message. |
| Add attachment to a post | attachment | Add a file, item, or link attachment to a post. |
| List attachments of an event | attachment collection | Get a list of attachments for an event. |
| List attachments of a message | attachment collection | Get a list of attachments for a message. |
| List attachments of a post | attachment collection | Get a list of attachments for a post. |
| Delete | None | Delete an attachment on an event, message, or post. |
The following are the base properties of any attachment resource. Refer to the specific type of attachment (fileAttachment, itemAttachment, or referenceAttachment) for additional properties.
| Property | Type | Description |
|---|---|---|
| contentType | String | The MIME type. |
| id | String | Read-only. |
| isInline | Boolean | true if the attachment is an inline attachment; otherwise, false. |
| lastModifiedDateTime | DateTimeOffset | 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 attachment's file name. |
| size | Int32 | The length of the attachment in bytes. |
None
Here is a JSON representation of the resource
{
"contentType": "string",
"id": "string (identifier)",
"isInline": true,
"lastModifiedDateTime": "String (timestamp)",
"name": "string",
"size": 1024
}