You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/import-exchange-mailbox-item.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,15 @@ ms.date: 12/06/2024
9
9
10
10
# Import an Exchange mailbox item using the mailbox import and export APIs
11
11
12
-
The mailbox import and export APIs allow you to import an Exchange [mailbox item](/graph/resources/mailboxitem) using the [FastTransfer stream](/openspecs/exchange_server_protocols/ms-oxcfxics/a2648823-0a98-43ee-98e8-590e4f7bcbbe) (FTS) format. Items can be restored to the same mailbox or a different one.
12
+
The mailbox import and export APIs allow you to import an Exchange [mailbox item](/graph/api/resources/mailboxitem) using the [FastTransfer stream](/openspecs/exchange_server_protocols/ms-oxcfxics/a2648823-0a98-43ee-98e8-590e4f7bcbbe) (FTS) format. Items can be restored to the same mailbox or a different one.
13
13
14
14
This article describes the two steps required to perform the import process, with an example provided for each step. After successfully uploading the item, you get a response that contains the **itemId** and **changeKey**, which can be saved for later use.
15
15
16
16
## Step 1: Create an import session
17
17
18
18
[Create an import session](/graph/api/mailbox-createimportsession) to import an item in a folder in the mailbox.
19
19
20
-
A successful operation returns a `HTTP 201 Created` response code and a new [mailboxItemImportSession](/graph/resources/mailboxitemimportsession) object in the response body, which contains an opaque **importUrl** that you can use in subsequent POST operations to upload items into a folder.
20
+
A successful operation returns a `HTTP 201 Created` response code and a new [mailboxItemImportSession](/graph/api/resources/mailboxitemimportsession) object in the response body, which contains an opaque **importUrl** that you can use in subsequent POST operations to upload items into a folder.
21
21
22
22
The **mailboxItemImportSession** object in the response also includes the **expirationDateTime** property that indicates the expiration date and time for the auth token embedded in the **importUrl** property value. After this time, the **importUrl** expires and is deleted.
23
23
@@ -69,7 +69,7 @@ Content-length: 232
69
69
70
70
## Step 2: Use the import URL to upload an item
71
71
72
-
To import the item into the mailbox, make a POST request to the URL returned in the previous step in the **importUrl** property of the [mailboxItemImportSession](/graph/resources/mailboxitemimportsession) object.
72
+
To import the item into the mailbox, make a POST request to the URL returned in the previous step in the **importUrl** property of the [mailboxItemImportSession](/graph/api/resources/mailboxitemimportsession) object.
73
73
74
74
Specify the request body as described in the [Request body](#request-body) section.
75
75
@@ -89,7 +89,7 @@ Because the initial opaque URL is preauthenticated and contains the appropriate
89
89
90
90
### Response
91
91
92
-
If successful, this action returns a `200 OK` response code and an [importMailboxItemResponse](/graph/resources/importmailboxitemresponse) object in the response body.
92
+
If successful, this action returns a `200 OK` response code and an **importMailboxItemResponse** object in the response body.
93
93
94
94
### Examples
95
95
@@ -102,7 +102,7 @@ The following example shows how to import a new item into the mailbox in `create
102
102
The following example shows a request.
103
103
104
104
<!-- {
105
-
"blockType": "request",
105
+
"blockType": "ignored",
106
106
"name": "mailboxthis.importItemCreateMode"
107
107
"sampleKeys": ["MBX:e0643f21@a7809c93"]
108
108
}
@@ -123,7 +123,7 @@ POST https://outlook.office365.com/api/gbeta/Mailboxes('MBX:e0643f21@a7809c93')/
0 commit comments