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
| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). |
40
-
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation from [listing sections](userteamwork-list-sections.md), or equivalently the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
40
+
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
Copy file name to clipboardExpand all lines: api-reference/beta/api/teamworksection-get.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ This method doesn't support [OData query parameters](/graph/query-parameters) to
41
41
| Header | Value |
42
42
|:-------|:------|
43
43
| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). |
44
-
| If-None-Match | The value of the **@microsoft.graph.sectionsVersion** annotation from [listing sections](userteamwork-list-sections.md), or equivalently the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). If the section hierarchy didn't change, this header causes a `304 Not Modified` response. Optional. |
44
+
| If-None-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). If the section hierarchy didn't change, this header returns a `304 Not Modified` response code. Optional. |
Copy file name to clipboardExpand all lines: api-reference/beta/api/teamworksection-post-items.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ POST /users/{user-id}/teamwork/sections/{teamworkSection-id}/items
38
38
|:-------|:------|
39
39
| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). |
40
40
| Content-Type | application/json. Required. |
41
-
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation from [listing sections](userteamwork-list-sections.md), or equivalently the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
41
+
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
42
42
43
43
## Request body
44
44
@@ -57,15 +57,15 @@ If successful, this method returns a `201 Created` response code and a [teamwork
57
57
> [!NOTE]
58
58
> The response includes an updated **@odata.etag** value. Use this value as the `If-Match` header for any subsequent mutation operations.
59
59
60
-
The following errors can occur:
60
+
This method can also return the following errors.
61
61
62
62
| Scenario | HTTP code | Error code | Message |
63
63
|:---------|:----------|:-----------|:--------|
64
64
| Item already exists in this section |`409 Conflict`|`conflict`| This item is already in this section. |
65
65
| Item already exists in another section |`409 Conflict`|`conflict`| This item is already associated with another section. Use the [move](teamworksectionitem-move.md) API to relocate it. |
66
-
| Maximum items per section reached |`400 Bad Request`|`badRequest`| The maximum number of items in this section has been reached. |
67
-
| Invalid item ID |`400 Bad Request`|`badRequest`| The specified item ID is not valid. Provide a valid chat, channel, meeting, or community ID. |
68
-
| ETag version mismatch |`412 Precondition Failed`|`preconditionFailed`| The resource has been modified since it was last read. Read the latest version and retry. |
66
+
| Maximum items per section reached |`400 Bad Request`|`badRequest`| The maximum number of items in this section is reached. |
67
+
| Invalid item ID |`400 Bad Request`|`badRequest`| The specified item ID isn't valid. Provide a valid chat, channel, meeting, or community ID. |
68
+
| ETag version mismatch |`412 Precondition Failed`|`preconditionFailed`| The resource was modified after it was last read. Read the latest version and retry. |
| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). |
40
40
| Content-Type | application/json. Required. |
41
-
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation from [listing sections](userteamwork-list-sections.md), or equivalently the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
41
+
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
Copy file name to clipboardExpand all lines: api-reference/beta/api/teamworksectionitem-delete.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Remove teamworkSectionItem"
3
-
description: "Remove an item from a section in a user's teamwork. This API doesn't delete the underlying chat, channel, meeting, or community; it only removes the item from the section."
3
+
description: "Remove an item from a section in a user's teamwork."
| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). |
40
-
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation from [listing sections](userteamwork-list-sections.md), or equivalently the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
40
+
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
Copy file name to clipboardExpand all lines: api-reference/beta/api/teamworksectionitem-move.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "teamworkSectionItem: move"
3
-
description: "Move an item from one section to another in a user's teamwork. Each item can belong to only one section at a time. This action removes the item from its current section and adds it to the target section."
3
+
description: "Move an item from one section to another in a user's teamwork."
4
4
author: "jsinghmokha"
5
5
ms.localizationpriority: medium
6
6
ms.subservice: "teams"
@@ -38,7 +38,7 @@ POST /users/{user-id}/teamwork/sections/{teamworkSection-id}/items/{teamworkSect
38
38
|:-------|:------|
39
39
| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). |
40
40
| Content-Type | application/json. Required. |
41
-
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation from [listing sections](userteamwork-list-sections.md), or equivalently the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
41
+
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
Copy file name to clipboardExpand all lines: api-reference/beta/api/userteamwork-list-sections.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,12 +50,12 @@ Don't supply a request body for this method.
50
50
51
51
If successful, this method returns a `200 OK` response code and a collection of [teamworkSection](../resources/teamworksection.md) objects in the response body.
52
52
53
-
The response includes the following OData instance annotations on the collection:
53
+
The response includes the following OData instance annotations on the collection.
54
54
55
55
| Annotation | Type | Description |
56
56
|:-----------|:-----|:------------|
57
-
|@microsoft.graph.sectionsOrder | String collection | An ordered array of section IDs representing the user's preferred section order. |
58
-
|@microsoft.graph.sectionsVersion | String | The current section hierarchy version. Use this value as the `If-Match` header for optimistic concurrency control on mutation operations (create, update, delete sections, and add, remove, or move items). |
57
+
|@microsoft.graph.sectionsOrder | String collection | An ordered array of section IDs that represent the user's preferred section order. |
58
+
|@microsoft.graph.sectionsVersion | String | The current section hierarchy version. Use this value as the `If-Match` header for optimistic concurrency control on mutation operations (create, update, or delete sections, and add, remove, or move items). |
Copy file name to clipboardExpand all lines: api-reference/beta/api/userteamwork-post-sections.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ POST /users/{user-id}/teamwork/sections
38
38
|:-------|:------|
39
39
| Authorization | Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts). |
40
40
| Content-Type | application/json. Required. |
41
-
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation from [listing sections](userteamwork-list-sections.md), or equivalently the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
41
+
| If-Match | The value of the **@microsoft.graph.sectionsVersion** annotation returned when you [list sections](userteamwork-list-sections.md), or the **@odata.etag** value from any previously retrieved [section](../resources/teamworksection.md). Required for optimistic concurrency control. |
Copy file name to clipboardExpand all lines: api-reference/beta/resources/teamworksection.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,7 @@ Represents a section in a user's Microsoft Teams chat list that organizes chats,
25
25
|[Get](../api/teamworksection-get.md)|[teamworkSection](teamworksection.md)| Read the properties of a [section](../resources/teamworksection.md) in a user's [teamwork](../resources/userteamwork.md). |
26
26
|[Update](../api/teamworksection-update.md)|[teamworkSection](teamworksection.md)| Update the properties of a [section](../resources/teamworksection.md) in a user's [teamwork](../resources/userteamwork.md). |
27
27
|[Delete](../api/teamworksection-delete.md)| None | Delete a user-defined [section](../resources/teamworksection.md) from a user's [teamwork](../resources/userteamwork.md). |
28
-
|[List items](../api/teamworksection-list-items.md)|[teamworkSectionItem](teamworksectionitem.md) collection | Get the list of [items](../resources/teamworksectionitem.md) in a [section](../resources/teamworksection.md). |
29
-
|[Add item](../api/teamworksection-post-items.md)|[teamworkSectionItem](teamworksectionitem.md)| Add an [item](../resources/teamworksectionitem.md) to a [section](../resources/teamworksection.md). |
30
-
|[Remove item](../api/teamworksectionitem-delete.md)| None | Remove an [item](../resources/teamworksectionitem.md) from a [section](../resources/teamworksection.md). |
31
-
|[Move item](../api/teamworksectionitem-move.md)|[teamworkSectionItem](teamworksectionitem.md)| Move an [item](../resources/teamworksectionitem.md) from one section to another. |
28
+
|[List items](../api/teamworksection-list-items.md)|[teamworkSectionItem](teamworksectionitem.md) collection | Get the list of [items](../resources/teamworksectionitem.md) in a [section](../resources/teamworksection.md) of a user's [teamwork](../resources/userteamwork.md). |
32
29
33
30
## Properties
34
31
@@ -65,6 +62,15 @@ Represents a section in a user's Microsoft Teams chat list that organizes chats,
65
62
> [!NOTE]
66
63
> The valid sort types for system-defined sections depend on the specific section. For example, the *Teams* and *Channels* sections support `nameAlphabetical`, but the *RecentChats* and *MutedChats* sections support only `mostRecent` and `unreadThenMostRecent`. When the property **isHierarchicalViewEnabled** is set to `true` for a *Teams* and *Channels* section, only `nameAlphabetical` is valid. Setting an unsupported sort type returns a `400 Bad Request` error.
67
64
65
+
### Instance attributes
66
+
67
+
Instance attributes are properties with special behaviors. These properties are temporary and either a) define behavior the service should perform or b) provide short-term property values, like a download URL for an item that expires.
68
+
69
+
| Property name | Type | Description |
70
+
|:-----------|:-----|:------------|
71
+
|@microsoft.graph.sectionsOrder | String collection | An ordered array of section IDs that represent the user's preferred section order. |
72
+
|@microsoft.graph.sectionsVersion | String | The current section hierarchy version. Use this value as the `If-Match` header for optimistic concurrency control on mutation operations (create, update, or delete sections, and add, remove, or move items). |
Copy file name to clipboardExpand all lines: api-reference/beta/resources/teamworksectionitem.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,10 @@ Represents an item, such as a chat, channel, meeting, or community, that is orga
20
20
21
21
| Method | Return type | Description |
22
22
|:-------|:------------|:------------|
23
-
|[List](../api/teamworksection-list-items.md)|[teamworkSectionItem](teamworksectionitem.md) collection | Get the list of items in a [section](../resources/teamworksection.md). |
24
-
|[Add](../api/teamworksection-post-items.md)|[teamworkSectionItem](teamworksectionitem.md)| Add an itemto a [section](../resources/teamworksection.md).|
25
-
|[Remove](../api/teamworksectionitem-delete.md)| None | Remove an item from a [section](../resources/teamworksection.md). |
26
-
|[Move](../api/teamworksectionitem-move.md)|[teamworkSectionItem](teamworksectionitem.md)| Move an item from one section to another. |
23
+
|[List](../api/teamworksection-list-items.md)|[teamworkSectionItem](teamworksectionitem.md) collection | Get the list of [items](../resources/teamworksectionitem.md) in a [section](../resources/teamworksection.md) of a user's [teamwork](../resources/userteamwork.md). |
24
+
|[Add](../api/teamworksection-post-items.md)|[teamworkSectionItem](teamworksectionitem.md)| Add an [item](../resources/teamworksectionitem.md), such as a chat, channel, meeting, or community, to a [section](../resources/teamworksection.md) in a user's [teamwork](../resources/userteamwork.md). |
25
+
|[Remove](../api/teamworksectionitem-delete.md)| None | Remove an [item](../resources/teamworksectionitem.md) from a [section](../resources/teamworksection.md) in a user's [teamwork](../resources/userteamwork.md). |
26
+
|[Move](../api/teamworksectionitem-move.md)|[teamworkSectionItem](teamworksectionitem.md)| Move an [item](../resources/teamworksectionitem.md) from one [section](../resources/teamworksection.md) to another in a user's [teamwork](../resources/userteamwork.md). |
0 commit comments