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: api-reference/beta/api/channel-completemigration.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ Consider the following points when completing migration for new and existing cha
20
20
21
21
- When a channel is created in migration mode for the initial import flow, the property **migrationMode** for a [channel](../resources/channel.md) in a team is updated to `completed` instead of being dropped, and the state is permanently marked for chats or channels. Migration mode is a special state that prevents certain operations, such as sending messages and adding members, during the data migration process. The parent team isn't marked with migration mode, as teams can't enter migration mode; only their child channels (general, standard, private, and shared) can.
22
22
- For *existing* channels that are already in migration mode, the API completes the message migration process by updating **migrationMode** to `completed` for a [channel](../resources/channel.md) in a team.
23
+
- The application that calls **completeMigration** must be the same application that initiated the migration session by calling [startMigration](channel-startmigration.md) on the target channel. This is the same application that is allowed to call [import message](channel-post-messages.md#example-2-import-a-message) during the migration session.
24
+
- Calling **completeMigration** removes the import mode banner visible to Teams client users, making the channel fully available again.
23
25
24
26
After a **completeMigration** request is made for existing or new channels, you can still import more messages into the team by calling [channel: startMigration](channel-startmigration.md).
Copy file name to clipboardExpand all lines: api-reference/beta/api/channel-post-messages.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ Namespace: microsoft.graph
16
16
17
17
Send a new [chatMessage](../resources/chatmessage.md) in the specified [channel](../resources/channel.md).
18
18
19
-
> **Note**: It is a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read.
19
+
> **Notes**:
20
+
> - We don't recommend that you use this API for data migration via the standard create message flow. For data migration scenarios, use the [import messages](/graph/teams-import-messages) flow instead.
21
+
> - It's a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read.
The following example shows how to import a message. For more information, see [Import messages into Microsoft Teams chats and channels using Microsoft Graph](/graph/teams-import-messages).
176
179
177
-
> **Note**: The permission scope `Teamwork.Migrate.All` is required for this scenario.
180
+
> **Note**: The permission scope `Teamwork.Migrate.All` is required for this scenario. The target channel must be in migration mode. The **from** property attributes the message to a user in the same tenant as the authenticated application. The **createdDateTime** value must be later than the channel **createdDateTime** and must not be in the future.
181
+
182
+
> [!IMPORTANT]
183
+
> The **createdDateTime** must be unique down to the millisecond within the target channel. If a message with the same **createdDateTime** exists, the request fails with `409 Conflict`. Adjust the **createdDateTime** and retry. For more information, see [Import messages into Microsoft Teams chats and channels using Microsoft Graph](/graph/teams-import-messages).
178
184
179
185
#### Request
180
186
181
-
The following example shows how to import back-in-time messages using the `createDateTime` and `from` keys in the request body.
187
+
The following example shows how to import back-in-time messages using the **createdDateTime** and **from** properties in the request body.
182
188
183
189
184
190
# [HTTP](#tab/http)
@@ -283,7 +289,7 @@ HTTP/1.1 200 OK
283
289
}
284
290
```
285
291
286
-
### Example 3: Import messages with inline images
292
+
### Example 3: Import a message with inline images
287
293
288
294
> [!NOTE]
289
295
> Currently, inline images are the only media type supported by the import message API schema.
Copy file name to clipboardExpand all lines: api-reference/beta/api/channel-startmigration.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@ Start the migration of external messages by enabling migration mode in an existi
18
18
19
19
Users are also allowed to define a minimum timestamp for content to be migrated, allowing them to import messages from the past. The provided timestamp must be older than the current **createdDateTime** for a [channel](../resources/channel.md). The provided timestamp is used to replace the existing **createdDateTime** of the [channel](../resources/channel.md).
20
20
21
+
> [!NOTE]
22
+
> - The application that calls **startMigration** owns the migration session end to end. The same application must call [import message](channel-post-messages.md#example-2-import-a-message) and [completeMigration](channel-completemigration.md) for the same thread. No other application can invoke these APIs on the thread until the owning application completes the migration.
23
+
> - Once a channel enters migration mode, a banner is displayed in the Teams client that indicates the conversation is in import mode. This banner remains visible until migration is completed by [completeMigration](channel-completemigration.md).
Copy file name to clipboardExpand all lines: api-reference/beta/api/chat-completemigration.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@ Complete the migration of external messages by removing migration mode from a [c
18
18
19
19
After a **completeMigration** request is made for an existing or new chat, you can start a migration session by calling [chat: startMigration](chat-startmigration.md).
20
20
21
+
> [!NOTE]
22
+
> - The application that calls **completeMigration** must be the same application that initiated the migration session by calling [startMigration](chat-startmigration.md) on the target chat. This is the same application that is allowed to call [import message](chat-post-messages.md#example-2-import-a-message) during the migration session.
23
+
> - Calling **completeMigration** removes the import mode banner visible to Teams client users, making the chat fully available again.
Copy file name to clipboardExpand all lines: api-reference/beta/api/chat-post-messages.md
+95-6Lines changed: 95 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ Namespace: microsoft.graph
16
16
17
17
Send a new [chatMessage](../resources/chatmessage.md) in the specified [chat](../resources/chat.md). This API cannot create a new chat; you must use the [list chats](chat-list.md) method to retrieve the ID of an existing chat before creating a chat message.
18
18
19
-
> **Note**: We don't recommend that you use this API for data migration. It does not have the throughput necessary for a typical migration.
20
-
21
-
> **Note**: It is a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read.
19
+
> **Notes**:
20
+
> - We don't recommend that you use this API for data migration via the standard create message flow. For data migration scenarios, use the [import messages](/graph/teams-import-messages) flow instead.
21
+
> - It's a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read.
The following example shows how to import a message. For more information, see [Import messages into Microsoft Teams chats and channels using Microsoft Graph](/graph/teams-import-messages).
168
+
169
+
> **Note**: The permission scope `Teamwork.Migrate.All` is required for this scenario. The target chat must be in migration mode.
170
+
171
+
> [!IMPORTANT]
172
+
> The **createdDateTime** must be unique down to the millisecond within the target chat. If a message with the same **createdDateTime** exists, the request fails with `409 Conflict`. Adjust the **createdDateTime** and retry. For more information, see [Import messages into Microsoft Teams chats and channels using Microsoft Graph](/graph/teams-import-messages).
173
+
174
+
#### Request
175
+
176
+
The following example shows how to import a message into a chat on behalf of a user using the **createdDateTime** and **from** properties in the request body.
Copy file name to clipboardExpand all lines: api-reference/beta/api/chat-startmigration.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,10 @@ You can define a minimum timestamp for content migration that enables the import
21
21
- The **createdDateTime** can only be moved towards the past.
22
22
- The **createdDateTime** can't be updated to a value newer than the current **createdDateTime**.
23
23
24
+
> [!NOTE]
25
+
> - The application that calls **startMigration** owns the migration session end to end. The same application must call [import message](chat-post-messages.md#example-2-import-a-message) and [completeMigration](chat-completemigration.md) for the same thread. No other application can invoke these APIs on the thread until the owning application completes the migration.
26
+
> - Once a chat enters migration mode, a banner is displayed in the Teams client that indicates the conversation is in import mode. This banner remains visible until migration is completed by [completeMigration](chat-completemigration.md).
@@ -51,7 +55,7 @@ In the request body, supply a JSON representation of the following parameters.
51
55
52
56
| Parameter | Type | Description |
53
57
|:---------------|:--------|:--------|
54
-
|conversationCreationDateTime|DateTimeOffset|The minimum timestamp for the messages to be migrated. The timestamp must be older than the current **createdDateTime** of the channel. If not provided, the current date and time is used. Optional.|
58
+
|conversationCreationDateTime|DateTimeOffset|The minimum timestamp for the messages to be migrated. The timestamp must be older than the current **createdDateTime** of the chat. If not provided, the current date and time is used. Optional.|
Copy file name to clipboardExpand all lines: api-reference/beta/api/chatmessage-post-replies.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ Namespace: microsoft.graph
16
16
17
17
Send a new reply to a [chatMessage](../resources/chatmessage.md) in a specified [channel](../resources/channel.md).
18
18
19
-
> **Note**: It is a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read.
19
+
> **Notes**:
20
+
> - We don't recommend that you use this API for data migration via the standard create message flow. For data migration scenarios, use the [import messages](/graph/teams-import-messages) flow instead.
21
+
> - It is a violation of the [terms of use](/legal/microsoft-apis/terms-of-use) to use Microsoft Teams as a log file. Only send messages that people will read.
The following example shows how to import a message reply. For more information, see [Import messages into Microsoft Teams chats and channels using Microsoft Graph](/graph/teams-import-messages).
174
+
171
175
> **Note**: The permission scope `Teamwork.Migrate.All` is required for this scenario.
172
176
177
+
> [!IMPORTANT]
178
+
> The **createdDateTime** must be unique down to the millisecond within the target channel. If a message with the same **createdDateTime** exists, the request fails with `409 Conflict`. Adjust the **createdDateTime** and retry. For more information, see [Import messages into Microsoft Teams chats and channels using Microsoft Graph](/graph/teams-import-messages).
179
+
173
180
#### Request
174
181
175
182
The following example shows how to import back-in-time messages using the `createDateTime` and `from` keys in the request body.
0 commit comments