Edit

Update crossTenantMigrationJob

Namespace: microsoft.graph

Update the completeAfterDateTime property of a crossTenantMigrationJob object. Only updates to completeAfterDateTime are supported. This property specifies when the migration job can proceed toward completion. If the value is in the past, the service treats it as already due and proceeds toward completion during its next processing cycle. This behavior doesn't bypass earlier validation or synchronization stages.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CrossTenantContentMigration.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application CrossTenantContentMigration.ReadWrite.All Not available.

Important

For delegated access using work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role that grants the permissions required for this operation. This operation supports the following built-in roles, which provide only the least privilege necessary:

  • Microsoft 365 Migration Administrator
  • Global Administrator

HTTP request

PATCH /solutions/migrations/crossTenantMigrationJobs/{crossTenantMigrationJobId}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply only the values for properties to update. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values.

The following table specifies the properties that can be updated.

Property Type Description
completeAfterDateTime DateTimeOffset The date and time when the migration job can proceed toward completion. The value can be in the past.

Response

If successful, this method returns a 204 No Content response code and no content in the response body.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/v1.0/solutions/migrations/crossTenantMigrationJobs/add14989-2b21-4001-81bd-a18b0bac1dea
Content-Type: application/json

{
  "completeAfterDateTime": "2025-05-22T17:14:52Z"
}

Response

The following example shows the response.

HTTP/1.1 204 No Content
Content-Type: text/plain