team: completeMigration

Namespace: microsoft.graph

Complete the message migration process by removing migration mode from a team. Migration mode is a special state where certain operations are barred, like message POST and membership operations during the data migration process.

After a completeMigration request is made, you cannot import additional messages into the team. You can add members to the team after the request returns a successful response.

Permissions

The following permission is required to call this API. To learn more, see Permissions.

Permission type Permission
Delegated (work or school account) Not supported.
Delegated (personal Microsoft account) Not supported.
Application Teamwork.Migrate.All

HTTP request

POST /teams/{team-id}/completeMigration

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Example

Request

The following is an example of the request.

POST https://graph.microsoft.com/v1.0/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/completeMigration

Response

The following is an example of the response.

HTTP/1.1 204 No Content