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/resources/planner-overview.md
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ You can use the Planner API in Microsoft Graph to create tasks and assign them t
17
17
Before you get started with the Planner API, it's helpful to understand how the main objects relate to each other and to Microsoft 365 groups.
18
18
19
19
## Plan containers
20
-
In Microsoft Planner, plans are always contained in another resource. The containing resource, [plannerPlanContainer](plannerplancontainer.md), determines the authorization rules of the plan and all the tasks in it, and the lifecycle of the plan. You can create a plan in a container of one of the following types: [driveItem](driveitem.md), Microsoft 365 [group](group.md), Planner project, [roster](plannerroster.md), or [user](user.md).
20
+
In Microsoft Planner, plans are always contained in another resource. The containing resource, [plannerPlanContainer](plannerplancontainer.md), determines the authorization rules of the plan and all the tasks in it, and the lifecycle of the plan. You can create a plan in a container of one of the following types: [driveItem](driveitem.md), Microsoft 365 [group](group.md), Planner project, [roster](plannerroster.md), [teamsChannel](channel.md), or [user](user.md).
21
21
22
22
The most common type of container is a group.
23
23
@@ -35,8 +35,32 @@ GET /groups/{group-id}/planner/plans
35
35
36
36
When you [create a new plan](../api/planner-post-plans.md), set the **container** property on a plan object to make a group its container. Plans must be contained by a supported resource.
37
37
38
-
>**Note:** The user who is creating the plan must be a member of the group that will contain the plan. When you create a new group by using [Create group](../api/group-post-groups.md), you are not added to the group as a member. After the group is created, add yourself as a member by using [group post members](../api/group-post-members.md).
38
+
>**Note:** The user who creates the plan must be a member of the group that contains the plan. When you create a new group by using [Create group](../api/group-post-groups.md), you aren't added to the group as a member. After the group is created, add yourself as a member by using [group post members](../api/group-post-members.md).
39
39
40
+
### Container type: Teams channel
41
+
42
+
The `teamsChannel` container type supports plans created in shared channels in Teams, where the channel is the container for the plan. Plans that are pinned in shared channels are deleted when the channel is deleted.
43
+
44
+
To [create a new plan](../api/planner-post-plans.md) in the container of a Teams channel, set the **container** property on a [plan](plannerplan.md) object with **type** as `teamsChannel`, and the ID should be formatted as "{team-id}/channels/{channel-id}".
45
+
46
+
```json
47
+
{
48
+
"container": {
49
+
"id": "{team-id}/channels/{channel-id}",
50
+
"type": "teamsChannel"
51
+
}
52
+
}
53
+
```
54
+
55
+
Alternatively, you can specify the URL for a shared channel in Teams.
Copy file name to clipboardExpand all lines: api-reference/beta/resources/plannerplancontainer.md
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,24 +20,25 @@ Planner currently supports the container types listed in the following table. Wh
20
20
21
21
|Type|Description|Path to the resource|
22
22
|----|-----------|--------------------|
23
+
|driveItem| Plan is contained by a [driveItem](driveitem.md). |`https://graph.microsoft.com/beta/drives/<driveId>/items/<itemId>`|
23
24
|group| Plan is contained by a [group](group.md).|`https://graph.microsoft.com/beta/groups/<id>`|
24
-
|roster| Plan is contained by a [plannerRoster](plannerroster.md). |`https://graph.microsoft.com/beta/planner/rosters/<id>`|
25
25
|project| Plan is contained by a Project from [Microsoft Project for the web](/project-for-the-web/projectforweb-admin-home). | Microsoft Project currently doesn't have a resource path on Microsoft Graph. Project details and members can be managed from [Microsoft Project](https://project.microsoft.com). |
26
-
|driveItem| Plan is contained by a [driveItem](driveitem.md). |`https://graph.microsoft.com/beta/drives/<driveId>/items/<itemId>`|
26
+
|roster| Plan is contained by a [plannerRoster](plannerroster.md). |`https://graph.microsoft.com/beta/planner/rosters/<id>`|
27
+
|teamsChannel| Plan is contained by a Teams [channel](channel.md). |`https://graph.microsoft.com/beta/teams/<teamId>/channels/<channelId>`|
27
28
|user| Plan is contained by a [User](user.md)|`https://graph.microsoft.com/beta/users/<id>`|
28
29
29
30
## Properties
30
31
|Property|Type|Description|
31
32
|:---|:---|:---|
32
33
|containerId|String|The identifier of the resource that contains the plan. Optional.|
33
-
|type|plannerContainerType|The type of the resource that contains the plan. For supported types, see the previous table. Possible values are: `group`, `unknownFutureValue`, `roster`, `project`, `driveItem`, and `user`. You must use the `Prefer: include-unknown-enum-members` request header to get the following value in this [evolvable enum](/graph/best-practices-concept#handling-future-members-in-evolvable-enumerations): `roster`, `project`, `driveItem`, and`user`. Optional.|
34
+
|type|plannerContainerType|The type of the resource that contains the plan. For supported types, see the previous table. Possible values are: `group`, `unknownFutureValue`, `roster`, `project`, `driveItem`, `user`, and `teamsChannel`. You must use the `Prefer: include-unknown-enum-members` request header to get the following value in this [evolvable enum](/graph/best-practices-concept#handling-future-members-in-evolvable-enumerations): `roster`, `project`, `driveItem`,`user`, and,`teamsChannel`. Optional.|
34
35
|url|String|The full canonical URL of the container. Optional.|
35
36
36
37
## Relationships
37
38
None.
38
39
39
40
## JSON representation
40
-
The following example displays a JSON representation of a plan container.
41
+
The following JSON representation shows the resource type.
41
42
42
43
<!-- {
43
44
"blockType": "resource",
@@ -47,9 +48,9 @@ The following example displays a JSON representation of a plan container.
Copy file name to clipboardExpand all lines: concepts/whats-new-overview.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,10 @@ The functionality also allows you to configure the default fallback option when
42
42
43
43
Use the [start](/graph/api/industrydata-industrydatarun-start?view=graph-rest-beta&preserve-view=true) operation on the [industryDataRun](/graph/api/resources/industrydata-industrydatarun?view=graph-rest-beta&preserve-view=true) resource to perform an on-demand run, with throttling limits of up to five successful runs every 12 hours.
44
44
45
+
### Tasks and plans
46
+
47
+
Use the [teamsChannel](/graph/api/resources/planner-overview?view=graph-rest-beta&preserve-view=true#container-type-teams-channel) container type to create plans in shared channels in Microsoft Teams.
0 commit comments