Microsoft Graph · Schema
microsoft.graph.attachment
Azure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Tasks
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/microsoft.graph.attachment",
"title": "microsoft.graph.attachment",
"allOf": [
{
"$ref": "#/components/schemas/microsoft.graph.entity"
},
{
"title": "attachment",
"required": [
"@odata.type"
],
"type": "object",
"properties": {
"contentType": {
"type": "string",
"description": "The MIME type.",
"nullable": true
},
"isInline": {
"type": "boolean",
"description": "true if the attachment is an inline attachment; otherwise, false."
},
"lastModifiedDateTime": {
"pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
"type": "string",
"description": "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 is 2014-01-01T00:00:00Z",
"format": "date-time",
"nullable": true
},
"name": {
"type": "string",
"description": "The attachment's file name.",
"nullable": true
},
"size": {
"maximum": 2147483647,
"minimum": -2147483648,
"type": "number",
"description": "The length of the attachment in bytes.",
"format": "int32"
},
"@odata.type": {
"type": "string"
}
},
"discriminator": {
"propertyName": "@odata.type",
"mapping": {
"#microsoft.graph.fileAttachment": "#/components/schemas/microsoft.graph.fileAttachment",
"#microsoft.graph.itemAttachment": "#/components/schemas/microsoft.graph.itemAttachment",
"#microsoft.graph.referenceAttachment": "#/components/schemas/microsoft.graph.referenceAttachment"
}
}
}
]
}