Skip to content

Commit 2a9e378

Browse files
committed
Merge branch 'main' of https://github.com/microsoftgraph/microsoft-graph-docs into yizcheng/new-enum-mexico
2 parents ff66ac7 + 7817fcf commit 2a9e378

2,986 files changed

Lines changed: 27346 additions & 7981 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/copilot-instructions.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
You are a content reviewer for Microsoft Graph REST API reference documentation. Use these guidelines to review pull requests (PRs) against the Microsoft Graph documentation standards outlined in the Microsoft Graph Content Development Kit (CDK).
44

5+
## Additional Documentation Resources
6+
7+
For comprehensive authoring and review guidance, reference these files located in the `.github/prompts/` folder:
8+
9+
- **[author-api-docs.prompt.md](.github/prompts/author-api-docs.prompt.md)**: Complete authoring guidelines for creating and updating Microsoft Graph API reference documentation, including workflows for fresh APIs, promotions, and deprecations.
10+
- **[review-api-docs.prompt.md](.github/prompts/review-api-docs.prompt.md)**: Detailed review process guidelines that combine authoring best practices with the content standards outlined below.
11+
12+
These files provide in-depth guidance on:
13+
- Documentation authoring workflows and scenarios
14+
- Content structure and organization requirements
15+
- Quality standards and validation processes
16+
- Common patterns and best practices specific to Microsoft Graph API documentation
17+
518
## File Type Classifications
619

720
This repository contains several types of files with different review requirements:

.github/prompts/author-api-docs.prompt.md

Lines changed: 1846 additions & 0 deletions
Large diffs are not rendered by default.

.github/prompts/review-api-docs.prompt.md

Lines changed: 381 additions & 0 deletions
Large diffs are not rendered by default.

api-reference/beta/api/accesspackageassignmentrequest-cancel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ The following example shows the response.
114114
} -->
115115

116116
```http
117-
HTTP/1.1 200 Status OK
117+
HTTP/1.1 200 OK
118118
```

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Namespace: microsoft.graph
1818

1919
In the Microsoft Entra [access reviews](../resources/accessreviews-root.md) feature, update an existing [accessReview](../resources/accessreview.md) object to change one or more of its properties.
2020

21-
This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the [addReviewer](accessreview-addreviewer.md) or [removeReviewer](accessreview-removereviewer.md) APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the [stop](accessreview-stop.md) API. To apply the decisions to the target group or app access rights, use the [apply](accessreview-apply.md) API.
21+
This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the [addReviewer](accessreview-addreviewer.md) or [removeReviewer](accessreview-removereviewer.md) APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the [stop](accessreview-stop.md) API. To apply the decisions to the target group or app access rights, use the [apply](accessreview-apply.md) API.
2222

2323

2424
[!INCLUDE [national-cloud-support](../../includes/all-clouds.md)]
@@ -47,14 +47,14 @@ The following table shows the properties that can be supplied when you update an
4747
| Property | Type | Description |
4848
|:--------------|:---------------|:-----------------------------------------------------------------------------------------------------------|
4949
| displayName | String | The access review name. |
50-
| startDateTime | DateTimeOffset | The DateTime when the review is scheduled to be start. This must be a date in the future. |
51-
| endDateTime | DateTimeOffset | The DateTime when the review is scheduled to end. This must be at least one day later than the start date. |
50+
| startDateTime | DateTimeOffset | The DateTime when the review is scheduled to be start. This date must be in the future. |
51+
| endDateTime | DateTimeOffset | The DateTime when the review is scheduled to end. This date must be at least one day after the start date. |
5252
| description | String | The description, to show to the reviewers. |
5353

5454

5555

5656
## Response
57-
If successful, this method returns a `204 Accepted` response code and an [accessReview](../resources/accessreview.md) object in the response body.
57+
If successful, this method returns a `202 Accepted` response code and an [accessReview](../resources/accessreview.md) object in the response body.
5858

5959
## Example
6060

@@ -116,7 +116,7 @@ Content-type: application/json
116116
"@odata.type": "microsoft.graph.accessReview"
117117
} -->
118118
```http
119-
HTTP/1.1 204 Accepted
119+
HTTP/1.1 202 Accepted
120120
Content-type: application/json
121121
122122
{

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Content-Type: application/json
124124
"blockType": "response"
125125
} -->
126126
```http
127-
HTTP/1.1 204 Accepted
127+
HTTP/1.1 202 Accepted
128128
```
129129

130130

@@ -183,7 +183,7 @@ Content-Type: application/json
183183
"blockType": "response"
184184
} -->
185185
```http
186-
HTTP/1.1 204 Accepted
186+
HTTP/1.1 202 Accepted
187187
```
188188

189189
### Example 3: Update a applyResult on an accessReviewInstance
@@ -246,7 +246,7 @@ Content-Type: application/json
246246
"blockType": "response"
247247
} -->
248248
```http
249-
HTTP/1.1 204 Accepted
249+
HTTP/1.1 202 Accepted
250250
```
251251

252252
<!--

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

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,16 @@ Content-type: application/json
192192
### Example 2: Retrieve an application by its appId and only specific properties
193193

194194
#### Request
195-
The following example shows a request.
195+
196+
The following example shows a request to retrieve an application and some of its properties.
196197

197198
# [HTTP](#tab/http)
198199
<!-- {
199200
"blockType": "request",
200201
"name": "get_application_by_appId_select"
201202
}-->
202203
```msgraph-interactive
203-
GET https://graph.microsoft.com/beta/applications(appId='46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b')?$select=id,appId,displayName,requiredResourceAccess
204+
GET https://graph.microsoft.com/beta/applications(appId='46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b')?$select=id,appId,displayName,signInAudience,signInAudienceRestrictions
204205
```
205206

206207
# [C#](#tab/csharp)
@@ -247,33 +248,15 @@ HTTP/1.1 200 OK
247248
Content-type: application/json
248249
249250
{
250-
"@odata.context": "https://graph.microsoft.com/beta/$metadata#applications(id,appId,displayName,requiredResourceAccess)/$entity",
251+
"@odata.context": "https://graph.microsoft.com/beta/$metadata#applications(id,appId,displayName,signInAudience,signInAudienceRestrictions)/$entity",
251252
"id": "7bec5fd1-a25f-474c-a6ca-5492082c6a9b",
252253
"appId": "46e6adf4-a9cf-4b60-9390-0ba6fb00bf6b",
253254
"displayName": "PostmanWeb",
254-
"requiredResourceAccess": [
255-
{
256-
"resourceAppId": "00000003-0000-0000-c000-000000000000",
257-
"resourceAccess": [
258-
{
259-
"id": "ad902697-1014-4ef5-81ef-2b4301988e8c",
260-
"type": "Scope"
261-
},
262-
{
263-
"id": "572fea84-0151-49b2-9301-11cb16974376",
264-
"type": "Scope"
265-
},
266-
{
267-
"id": "e1fe6dd8-ba31-4d61-89e7-88639da4683d",
268-
"type": "Scope"
269-
},
270-
{
271-
"id": "7e823077-d88e-468f-a337-e18f1f0e6c7c",
272-
"type": "Scope"
273-
}
274-
]
275-
}
276-
]
255+
"signInAudience": "AzureADMultipleOrgs",
256+
"signInAudienceRestrictions": {
257+
"@odata.type": "#microsoft.graph.unrestrictedAudience",
258+
"kind": "unrestricted"
259+
}
277260
}
278261
```
279262

api-reference/beta/api/application-post-applications.md

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ POST /applications
3838
```
3939

4040
## Request headers
41+
4142
| Name | Description |
4243
|:---------------|:---------------------------|
4344
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
@@ -55,6 +56,7 @@ If successful, this method returns `201 Created` response code and an [applicati
5556
### Example 1: Create an application with the default settings
5657

5758
#### Request
59+
5860
The following example shows a request.
5961

6062
# [HTTP](#tab/http)
@@ -175,6 +177,7 @@ Content-type: application/json
175177
### Example 2: Create a new application and add a password secret
176178

177179
#### Request
180+
178181
# [HTTP](#tab/http)
179182
<!-- {
180183
"blockType": "request",
@@ -272,6 +275,68 @@ Content-type: application/json
272275
}
273276
```
274277

278+
### Example 3: Create a new multitenant application limited to only some tenants
279+
280+
#### Request
281+
282+
The following example creates a multitenant application that can only be used in two allowed Microsoft Entra tenants (and the tenant where the app is registered).
283+
284+
<!-- {
285+
"blockType": "request",
286+
"name": "create_application_with_signinaudiencerestrictions"
287+
}-->
288+
```http
289+
POST https://graph.microsoft.com/beta/applications
290+
Content-type: application/json
291+
292+
{
293+
"displayName": "MyAppName",
294+
"signInAudience": "AzureADMultipleOrgs",
295+
"signInAudienceRestrictions": {
296+
"@odata.type": "#microsoft.graph.allowedTenantsAudience",
297+
"isHomeTenantAllowed": true,
298+
"allowedTenantIds": [
299+
"818ce016-78c2-457c-91d7-c02c2faaa5fe",
300+
"c62670b0-53a1-4a38-b26c-4093cbaa510a"
301+
]
302+
}
303+
}
304+
```
305+
306+
#### Response
307+
308+
The following example shows the response.
309+
310+
> **Note**: The response object shown here might be shortened for readability.
311+
312+
<!-- {
313+
"blockType": "response",
314+
"truncated": true,
315+
"@odata.type": "microsoft.graph.application"
316+
} -->
317+
318+
```http
319+
HTTP/1.1 200 OK
320+
Content-type: application/json
321+
322+
{
323+
"@odata.context": "https://graph.microsoft.com/beta/$metadata#applications/$entity",
324+
"id": "83ab4737-da9d-4084-86f2-f8fbec220647",
325+
"appId": "9519e58c-bd06-4120-a7fd-2220d4de8409",
326+
"createdDateTime": "2025-11-01T19:10:02.6626202Z",
327+
"displayName": "MyAppName",
328+
"signInAudience": "AzureADMultipleOrgs",
329+
"signInAudienceRestrictions": {
330+
"@odata.type": "#microsoft.graph.allowedTenantsAudience",
331+
"isHomeTenantAllowed": true,
332+
"allowedTenantIds": [
333+
"818ce016-78c2-457c-91d7-c02c2faaa5fe",
334+
"c62670b0-53a1-4a38-b26c-4093cbaa510a"
335+
]
336+
}
337+
}
338+
```
339+
275340
<!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79
276341
2015-10-25 14:57:30 UTC -->
277342
<!--
@@ -285,6 +350,3 @@ Content-type: application/json
285350
]
286351
}
287352
-->
288-
289-
290-

0 commit comments

Comments
 (0)