{ "opencollection": "1.0.0", "info": { "name": "Microsoft Exchange Exchange Online Admin Accepted Domains Mail Folders API", "version": "2.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Mail Folders", "type": "folder" }, "items": [ { "info": { "name": "Microsoft Exchange List mail folders", "type": "http" }, "http": { "method": "GET", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders", "params": [ { "name": "$top", "value": "", "type": "query", "description": "The number of items to return in a result set" }, { "name": "$skip", "value": "", "type": "query", "description": "The number of items to skip in a result set" }, { "name": "$select", "value": "", "type": "query", "description": "Comma-separated list of properties to include in the response" }, { "name": "includeHiddenFolders", "value": "", "type": "query", "description": "Include hidden mail folders in the response" } ] }, "docs": "Get all the mail folders in the signed-in user's mailbox, including any mail search folders. By default, hidden mail folders are not included. Use the includeHiddenFolders query parameter to include them." }, { "info": { "name": "Microsoft Exchange Create mail folder", "type": "http" }, "http": { "method": "POST", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new mail folder in the root folder of the user's mailbox." }, { "info": { "name": "Microsoft Exchange Get mail folder", "type": "http" }, "http": { "method": "GET", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" }, { "name": "$select", "value": "", "type": "query", "description": "Comma-separated list of properties to include in the response" } ] }, "docs": "Read the properties and relationships of a mail folder object." }, { "info": { "name": "Microsoft Exchange Update mail folder", "type": "http" }, "http": { "method": "PATCH", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update the properties of a mail folder object." }, { "info": { "name": "Microsoft Exchange Delete mail folder", "type": "http" }, "http": { "method": "DELETE", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" } ] }, "docs": "Delete the specified mail folder. The folder is moved to the Deleted Items folder. To permanently delete a mail folder, use the permanentDelete action." }, { "info": { "name": "Microsoft Exchange List messages in mail folder", "type": "http" }, "http": { "method": "GET", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id/messages", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" }, { "name": "$top", "value": "", "type": "query", "description": "The number of items to return in a result set" }, { "name": "$skip", "value": "", "type": "query", "description": "The number of items to skip in a result set" }, { "name": "$select", "value": "", "type": "query", "description": "Comma-separated list of properties to include in the response" }, { "name": "$filter", "value": "", "type": "query", "description": "OData filter expression to filter results" }, { "name": "$orderby", "value": "", "type": "query", "description": "Comma-separated list of properties to sort results by" } ] }, "docs": "Get all the messages in the specified mail folder of the signed-in user's mailbox." }, { "info": { "name": "Microsoft Exchange Create message in folder", "type": "http" }, "http": { "method": "POST", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id/messages", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a new message in the specified mail folder." }, { "info": { "name": "Microsoft Exchange List child folders", "type": "http" }, "http": { "method": "GET", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id/childFolders", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" }, { "name": "$top", "value": "", "type": "query", "description": "The number of items to return in a result set" }, { "name": "$skip", "value": "", "type": "query", "description": "The number of items to skip in a result set" } ] }, "docs": "Get the folder collection under the specified folder." }, { "info": { "name": "Microsoft Exchange Create child folder", "type": "http" }, "http": { "method": "POST", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id/childFolders", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a new child mail folder under the specified folder." }, { "info": { "name": "Microsoft Exchange Copy mail folder", "type": "http" }, "http": { "method": "POST", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id/copy", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Copy a mail folder and its contents to another mail folder." }, { "info": { "name": "Microsoft Exchange Move mail folder", "type": "http" }, "http": { "method": "POST", "url": "https://outlook.office365.com/adminapi/v2.0/me/mailFolders/:mailFolder-id/move", "params": [ { "name": "mailFolder-id", "value": "", "type": "path", "description": "The unique identifier of the mail folder, or a well-known folder name such as inbox, drafts, sentitems, or deleteditems" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Move a mail folder and its contents to another mail folder." } ] } ], "bundled": true }