v1

latestOpenAPI 3.0.42026-07-174835104.5 KB
me.mailFolder

Create mailFolder

Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. To create a mail search folder, set the '@odata.type' property to '#microsoft.graph.mailSearchFolder' and include the filterQuery and sourceFolderIds properties.

post/me/mailFolders

Request body

@odata.typestring
idstring

The unique identifier for an entity. Read-only

childFolderCountnumber nullable

The number of immediate child mailFolders in the current mailFolder

parentFolderIdstring nullable

The unique identifier for the mailFolder's parent mailFolder

displayNamestring nullable

The mailFolder's display name

unreadItemCountnumber nullable

The number of items in the mailFolder marked as unread

isHiddenboolean nullable

Indicates whether the mailFolder is hidden. This property can be set only when creating the folder

totalItemCountnumber nullable

The number of items in the mailFolder

Response

Created mail folder

@odata.typestring
idstring

The unique identifier for an entity. Read-only

childFolderCountnumber nullable

The number of immediate child mailFolders in the current mailFolder

parentFolderIdstring nullable

The unique identifier for the mailFolder's parent mailFolder

displayNamestring nullable

The mailFolder's display name

unreadItemCountnumber nullable

The number of items in the mailFolder marked as unread

isHiddenboolean nullable

Indicates whether the mailFolder is hidden. This property can be set only when creating the folder

totalItemCountnumber nullable

The number of items in the mailFolder