Skip to content

Commit d2cdd7c

Browse files
authored
Update planner overview with Teams channel container type
1 parent fbea845 commit d2cdd7c

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

api-reference/beta/resources/planner-overview.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,59 +37,58 @@ When you [create a new plan](../api/planner-post-plans.md), set the **container*
3737

3838
>**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).
3939
40+
### Container type: Teams channel
4041

41-
### Container type: User
42-
43-
The user container type supports personal plans, where the user is the only user tracking their individual tasks. This provides the flexibility for users to share or collaborate on their personal plans. Plans that are created for a single user are automatically deleted when the user is deleted.
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.
4443

45-
To [create a new plan](../api/planner-post-plans.md) in a user's container, set the **container** property on a [plan](plannerplan.md) object with **type** being `user`.
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}".
4645

4746
```json
4847
{
4948
"container": {
50-
"id": "00000000-0000-0000-0000-000000000000",
51-
"type": "user"
49+
"id": "{team-id}/channels/{channel-id}",
50+
"type": "teamsChannel"
5251
}
5352
}
5453
```
5554

56-
Alternatively, you can specify the URL for a user.
55+
Alternatively, you can specify the URL for a shared channel in Teams.
5756

5857
```json
5958
{
6059
"container": {
61-
"url": "https://graph.microsoft.com/beta/users/me"
60+
"url": "https://graph.microsoft.com/beta/teams/{team-id}/channels/{channel-id}"
6261
}
6362
}
6463
```
6564

66-
Users can upgrade their personal plans into group-based plans by [moving](../api/plannerplan-movetocontainer.md) the plan from the user container to a group container, changing the type of the container for the plan from `user` to `group`.
67-
68-
### Container type: Teams channel
65+
### Container type: User
6966

70-
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.
67+
The user container type supports personal plans, where the user is the only user tracking their individual tasks. This provides the flexibility for users to share or collaborate on their personal plans. Plans that are created for a single user are automatically deleted when the user is deleted.
7168

72-
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}".
69+
To [create a new plan](../api/planner-post-plans.md) in a user's container, set the **container** property on a [plan](plannerplan.md) object with **type** being `user`.
7370

7471
```json
7572
{
7673
"container": {
77-
"id": "{team-id}/channels/{channel-id}",
78-
"type": "teamsChannel"
74+
"id": "00000000-0000-0000-0000-000000000000",
75+
"type": "user"
7976
}
8077
}
8178
```
8279

83-
Alternatively, you can specify the URL for a shared channel in Teams.
80+
Alternatively, you can specify the URL for a user.
8481

8582
```json
8683
{
8784
"container": {
88-
"url": "https://graph.microsoft.com/beta/teams/{team-id}/channels/{channel-id}"
85+
"url": "https://graph.microsoft.com/beta/users/me"
8986
}
9087
}
9188
```
9289

90+
Users can upgrade their personal plans into group-based plans by [moving](../api/plannerplan-movetocontainer.md) the plan from the user container to a group container, changing the type of the container for the plan from `user` to `group`.
91+
9392
## Plans
9493

9594
[Plans](plannerplan.md) are the containers of [tasks](plannertask.md).

0 commit comments

Comments
 (0)