plannerPlan: moveToContainer

Namespace: microsoft.graph


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Move a planner plan object from one planner plan container to another. Planner plans can only be moved from a user container to a group container.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Tasks.Read, Tasks.ReadWrite
Delegated (personal Microsoft account) Not supported.
Application Tasks.Read.All, Tasks.ReadWrite.All

HTTP request


Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.
If-Match Last known ETag value for the plannerPlan to be moved. Required.

Request body

In the request body, supply a JSON representation of the plannerPlanContainer object.


If successful, this API returns a 200 OK response code and a plannerPlan object in the response body.



The following example shows a request to move a plan from a user container to a group container.

Content-type: application/json
If-Match: "string"

    "container": {
        "containerId": "groupId",
        "type": "group"


The following example shows a response to a request to move a plan from a user container to a group container.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

    "@odata.context": "$metadata#plans/$entity",
    "@odata.etag": "W/\"JzEtUGxhbiAgQEBAQEBAQEBAQEBAQEBARCc=\"",
    "title": "The Plan",
    "id": "planId",
    "container": {
        "containerId": "groupId",
        "type": "group",
        "url": ""