Skip to content

Commit 303eeaa

Browse files
authored
Merge branch 'main' into user/jsinghmokha/add-section-management-apis-beta
2 parents 0ed9560 + c6cba67 commit 303eeaa

247 files changed

Lines changed: 2870 additions & 584 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/policies/resourceManagement.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,42 @@ configuration:
10141014
then:
10151015
- addLabel:
10161016
label: ready to merge
1017+
- description: Remove do not merge label when pull request is labeled ready to merge
1018+
if:
1019+
- payloadType: Pull_Request
1020+
- labelAdded:
1021+
label: ready to merge
1022+
- isOpen
1023+
then:
1024+
- removeLabel:
1025+
label: do not merge
1026+
- description: Remove ready to merge label when pull request is labeled do not merge
1027+
if:
1028+
- payloadType: Pull_Request
1029+
- labelAdded:
1030+
label: do not merge
1031+
- isOpen
1032+
then:
1033+
- removeLabel:
1034+
label: ready to merge
1035+
- description: Remove resolved awaiting prod deployment label when pull request is labeled schema live
1036+
if:
1037+
- payloadType: Pull_Request
1038+
- labelAdded:
1039+
label: schema live
1040+
- isOpen
1041+
then:
1042+
- removeLabel:
1043+
label: 'resolved: awaiting prod deployment'
1044+
- description: Add schema live label when pull request is labeled resolved awaiting prod deployment
1045+
if:
1046+
- payloadType: Pull_Request
1047+
- labelAdded:
1048+
label: 'resolved: awaiting prod deployment'
1049+
- isOpen
1050+
then:
1051+
- addLabel:
1052+
label: schema live
10171053
- description: Add do not merge label to new pull requests opened by contributors
10181054
if:
10191055
- payloadType: Pull_Request

api-reference/beta/api/agentriskdetection-get.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Content-Type: application/json
120120
"id": "1e384c2b0799b01834c0f886560a9a64e433135fe5b8607c535ebbfb03d2ee67",
121121
"agentId": "229da549-7a91-4365-900f-d4ef49a759a0",
122122
"agentDisplayName": "Ask HR Agent Identity",
123+
"blueprintId": "b3390471-68c5-466a-9ac2-b93e2a454532",
123124
"identityType": "agentIdentity",
124125
"activityDateTime": "2025-07-30T15:38:56.9594972Z",
125126
"detectedDateTime": "2025-07-30T15:38:56.9594972Z",
@@ -130,7 +131,8 @@ Content-Type: application/json
130131
"riskState": "atRisk",
131132
"riskEventType": "unfamiliarResourceAccess",
132133
"riskEvidence": "Agent targeted resources that it does not usually access.",
133-
"additionalInfo": ""
134+
"additionalInfo": "",
135+
"source": "activeDirectory"
134136
}
135137
}
136138
```

api-reference/beta/api/channel-getallmessages.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Retrieve [messages](../resources/chatmessage.md) across all [channels](../resour
1818

1919
To learn more about using the Microsoft Teams export APIs to export content, see [Export content with the Microsoft Teams export APIs](/microsoftteams/export-teams-content).
2020

21-
[!INCLUDE [teams-metered-apis](../../includes/teams-metered-apis.md)]
2221

2322
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2423

@@ -38,16 +37,6 @@ GET /teams/{team-id}/channels/getAllMessages
3837

3938
## Optional query parameters
4039

41-
You can use `model` query parameter, which supports the values `A` and `B`, based on the preferred [licensing and payment model](/graph/teams-licenses),
42-
as shown in the following examples.
43-
If no `model` is specified, [evaluation mode](/graph/teams-licenses#evaluation-mode-default-requirements) is used.
44-
45-
```http
46-
GET /teams/{team-id}/channels/getAllMessages?model=A
47-
GET /teams/{team-id}/channels/getAllMessages?model=B
48-
```
49-
If no `model` parameter is specified, [evaluation mode](/graph/teams-licenses#evaluation-mode-default-requirements) is used.
50-
5140
You can use the [$top](/graph/query-parameters#top-parameter) query parameter to control the number of items per response.
5241
Additionally, [$filter](/graph/query-parameters#filter-parameter) is supported with **dateTime** range query on **lastModifiedDateTime**. The other [OData query parameters](/graph/query-parameters) aren't currently supported.
5342

api-reference/beta/api/channel-getallretainedmessages.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Get all retained [messages](../resources/chatmessage.md) across all [channels](.
1818

1919
To learn more about how to use the Microsoft Teams export APIs to export content, see [Export content with the Microsoft Teams export APIs](/microsoftteams/export-teams-content).
2020

21-
[!INCLUDE [teams-metered-apis](../../includes/teams-metered-apis.md)]
2221

2322
> [!NOTE]
2423
> This API requires [Teams retention policies](/purview/create-retention-policies?tabs=teams-retention) to be configured. For more information, see [Learn about retention for Microsoft Teams](/purview/retention-policies-teams).
@@ -47,13 +46,6 @@ GET /teams/{teamsId}/channels/getAllRetainedMessages
4746

4847
## Optional query parameters
4948

50-
The following example shows how to use the `model` query parameter with values `A` or `B` to select the preferred [licensing and payment model](/graph/teams-licenses). If you don't specify a `model`, [evaluation mode](/graph/teams-licenses#evaluation-mode-default-requirements) is used by default.
51-
52-
```http
53-
GET /teams/{team-id}/channels/getAllRetainedMessages?model=A
54-
GET /teams/{team-id}/channels/getAllRetainedMessages?model=B
55-
```
56-
5749
This method supports the following OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters).
5850

5951
| Name |Description|

api-reference/beta/api/channel-list-enabledapps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Don't supply a request body for this method.
5151

5252
## Response
5353

54-
If successful, this method returns a `200 OK` response code and a collection of [teamsApp](../resources/teamsapp.md) objects in the response body. The response also includes the **@odata.id** property which can be used to access the **teamsApp** and run other operations on the [teamsApp](../resources/teamsApp.md) object.
54+
If successful, this method returns a `200 OK` response code and a collection of [teamsApp](../resources/teamsapp.md) objects in the response body. The response also includes the **@odata.id** property which can be used to access the **teamsApp** and run other operations on the [teamsApp](../resources/teamsapp.md) object.
5555

5656
## Examples
5757

api-reference/beta/api/channel-patch.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Namespace: microsoft.graph
1616

1717
Update the properties of the specified [channel](../resources/channel.md).
1818

19-
[!INCLUDE [teams-model-A-only-disclaimer](../../includes/teams-model-A-only-disclaimer.md)]
20-
2119
[!INCLUDE [national-cloud-support](../../includes/all-clouds.md)]
2220

2321
## Permissions
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
title: "Delete targetedChatMessage"
3+
description: "Delete a specific targeted message from a chat context."
4+
author: "devjha-ms"
5+
ms.date: 02/16/2026
6+
ms.localizationpriority: medium
7+
ms.subservice: "teams"
8+
doc_type: apiPageType
9+
---
10+
11+
# Delete targetedChatMessage
12+
13+
Namespace: microsoft.graph
14+
15+
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
16+
17+
Delete a specific [targeted message](../resources/targetedchatmessage.md) from a chat context. Teams administrators can use this API to remove targeted messages from group chats.
18+
19+
## Permissions
20+
21+
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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference).
22+
23+
<!-- { "blockType": "permissions", "name": "chat_delete_targetedmessages" } -->
24+
[!INCLUDE [permissions-table](../includes/permissions/chat-delete-targetedmessages-permissions.md)]
25+
26+
## HTTP request
27+
28+
<!-- {
29+
"blockType": "ignored"
30+
}
31+
-->
32+
``` http
33+
DELETE /users/{user-id | userPrincipalName}/chats/{chat-id}/targetedMessages/{message-id}
34+
```
35+
36+
## Path parameters
37+
38+
|Parameter|Type|Description|
39+
|:---|:---|:---|
40+
|chat-id|String|Placeholder for the unique identifier of the chat where the targeted message was sent. Required.|
41+
|message-id|String|Placeholder for the unique identifier of the targeted message to delete. This ID is unique within the context of the specified chat and user. Required.|
42+
|user-id|String|Placeholder for the unique identifier or user principal name of the user to whom the targeted message was sent. Required.|
43+
44+
## Request headers
45+
46+
|Name|Description|
47+
|:---|:---|
48+
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
49+
50+
## Request body
51+
52+
Don't supply a request body for this method.
53+
54+
## Response
55+
56+
If successful, this method returns a `204 No Content` response code.
57+
58+
## Examples
59+
60+
### Request
61+
62+
The following example shows a request.
63+
64+
# [HTTP](#tab/http)
65+
<!-- {
66+
"blockType": "request",
67+
"name": "delete_targetedchatmessage",
68+
"sampleKeys": ["f47b5f54-6968-4706-a522-31e842b12345", "19:eeaa4e946d674c4f8d4dded613780f45@thread.v2", "1580849738240"]
69+
}
70+
-->
71+
``` http
72+
DELETE https://graph.microsoft.com/beta/users/f47b5f54-6968-4706-a522-31e842b12345/chats/19:eeaa4e946d674c4f8d4dded613780f45@thread.v2/targetedMessages/1580849738240
73+
```
74+
75+
# [JavaScript](#tab/javascript)
76+
[!INCLUDE [sample-code](../includes/snippets/javascript/delete-targetedchatmessage-javascript-snippets.md)]
77+
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
78+
79+
---
80+
81+
### Response
82+
83+
The following example shows the response.
84+
85+
<!-- {
86+
"blockType": "response",
87+
"truncated": true
88+
}
89+
-->
90+
``` http
91+
HTTP/1.1 204 No Content
92+
```

api-reference/beta/api/chat-getallretainedmessages.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Get all retained [messages](../resources/chatmessage.md) from all [chats](../res
1818

1919
To learn more about how to use the Microsoft Teams export APIs to export content, see [Export content with the Microsoft Teams export APIs](/microsoftteams/export-teams-content).
2020

21-
[!INCLUDE [teams-metered-apis](../../includes/teams-metered-apis.md)]
2221

2322
> [!NOTE]
2423
> This API requires [Teams retention policies](/purview/create-retention-policies?tabs=teams-retention) to be configured. For more information, see [Learn about retention for Microsoft Teams](/purview/retention-policies-teams).
@@ -44,13 +43,6 @@ GET /users/{id}/chats/getAllRetainedMessages
4443

4544
## Optional query parameters
4645

47-
The following example shows how to use the `model` query parameter with values `A` or `B` to select the preferred [licensing and payment model](/graph/teams-licenses). If you don't specify a payment model, [evaluation mode](/graph/teams-licenses#evaluation-mode-default-requirements) is used by default.
48-
49-
```http
50-
GET /users/{id}/chats/getAllRetainedMessages?model=A
51-
GET /users/{id}/chats/getAllRetainedMessages?model=B
52-
```
53-
5446
This method supports the following OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters).
5547

5648
| Name |Description|

api-reference/beta/api/chatmessage-update.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Updating works only for chats where conversation members are Microsoft Teams use
2020

2121
This method doesn't support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message.
2222

23-
[!INCLUDE [teams-model-A-only-disclaimer](../../includes/teams-model-A-only-disclaimer.md)]
23+
> [!NOTE]
24+
> When used with application permissions, a [license](/office365/servicedescriptions/microsoft-365-service-descriptions/microsoft-365-tenantlevel-services-licensing-guidance/microsoft-365-security-compliance-licensing-guidance#microsoft-purview-data-loss-prevention-graph-apis-for-teams-data-loss-prevention-dlp-and-for-teams-export) that includes the Microsoft Communications DLP [service plan](/azure/active-directory/enterprise-users/licensing-service-plan-reference) is required.
2425
2526
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2627

@@ -64,19 +65,6 @@ To update a **chatMessage** in a **chat**:
6465
```http
6566
PATCH /chats/{chatThread-id}/messages/{message-id}
6667
```
67-
68-
## Optional query parameters
69-
70-
You can use `model` query parameter, which only supports the value `A`, as shown in the following examples.
71-
72-
```http
73-
PATCH /teams/(team-id)/channels/{channel-id}/messages/{message-id}?model=A
74-
PATCH /teams/(team-id)/channels/{channel-id}/messages/{message-id}/replies/{reply-id}?model=A
75-
PATCH /chats/{chatThread-id}/messages/{message-id}?model=A
76-
```
77-
78-
If no `model` is specified, [evaluation mode](/graph/teams-licenses#evaluation-mode-default-requirements) is used.
79-
8068
## Request headers
8169

8270
| Name | Description |
@@ -108,7 +96,11 @@ If successful, this method returns a `200 OK` response.
10896

10997
### Errors
11098

111-
[!INCLUDE [teams-model-A-only-errors](../../includes/teams-model-A-only-errors.md)]
99+
The following table lists other response codes that this API can return.
100+
101+
| Sample error type | Status code | Sample error messages |
102+
|:---|:---|:---|
103+
| E5 license or Microsoft Communications service plan requirement not met. | 402 Payment Required | `"...needs a valid license to access this API..."` </br> `"...tenant needs a valid license to access this API..."` |
112104

113105
## Examples
114106

api-reference/beta/api/chats-getallmessages.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Get all messages from all [chats](../resources/chatmessage.md) in which a user i
1818

1919
To learn more about how to use the Microsoft Teams export APIs to export content, see [Export content with the Microsoft Teams export APIs](/microsoftteams/export-teams-content).
2020

21-
[!INCLUDE [teams-metered-apis](../../includes/teams-metered-apis.md)]
2221

2322
[!INCLUDE [national-cloud-support](../../includes/global-only.md)]
2423

@@ -38,17 +37,6 @@ GET /users/{id | user-principal-name}/chats/getAllMessages
3837

3938
## Optional query parameters
4039

41-
You can use the `model` query parameter, which supports the values `A` and `B`, based on the preferred [licensing and payment model](/graph/teams-licenses),
42-
as shown in the following examples.
43-
44-
<!-- { "blockType": "ignored" } -->
45-
```http
46-
GET /users/{id | user-principal-name}/chats/getAllMessages?model=A
47-
GET /users/{id | user-principal-name}/chats/getAllMessages?model=B
48-
```
49-
50-
If no `model` parameter is specified, [evaluation mode](/graph/teams-licenses#evaluation-mode-default-requirements) will be used.
51-
5240
This method also supports [date range parameters](/graph/query-parameters) to customize the response, as shown in the following example.
5341

5442
<!-- { "blockType": "ignored" } -->

0 commit comments

Comments
 (0)