Skip to content

Commit

Permalink
Merging changes synced from https://github.com/microsoftgraph/microso…
Browse files Browse the repository at this point in the history
…ft-graph-docs (branch live)
  • Loading branch information
Learn Build Service GitHub App authored and Learn Build Service GitHub App committed Feb 21, 2025
2 parents 0940ed8 + ea6f1e9 commit 3a7510a
Show file tree
Hide file tree
Showing 262 changed files with 2,597 additions and 483 deletions.
70 changes: 70 additions & 0 deletions api-reference/beta/api/businessscenarioplanner-list-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ The following example shows a request that gets all tasks associated with a spec

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "list_businessscenariotask_e1",
Expand All @@ -75,6 +76,40 @@ The following example shows a request.
GET https://graph.microsoft.com/beta/solutions/businessScenarios/c5d514e6c6864911ac46c720affb6e4d/planner/tasks?$filter=businessScenarioProperties/externalObjectId eq 'Order#12010'
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/list-businessscenariotask-e1-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)
[!INCLUDE [sample-code](../includes/snippets/cli/list-businessscenariotask-e1-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/list-businessscenariotask-e1-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/list-businessscenariotask-e1-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [snippet-not-available](../includes/snippets/snippet-not-available.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/list-businessscenariotask-e1-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)
[!INCLUDE [sample-code](../includes/snippets/powershell/list-businessscenariotask-e1-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/list-businessscenariotask-e1-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

#### Response

The following example shows the response.
Expand Down Expand Up @@ -214,6 +249,7 @@ The following example shows a request that gets all tasks created in a specific

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "list_businessscenariotask_e3",
Expand All @@ -224,6 +260,40 @@ The following example shows a request.
GET https://graph.microsoft.com/beta/solutions/businessScenarios/c5d514e6c6864911ac46c720affb6e4d/planner/tasks?$filter=target/microsoft.graph.businessScenarioGroupTarget/groupId eq '7a339254-4b2b-4410-b295-c890a16776ee'
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/list-businessscenariotask-e3-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)
[!INCLUDE [sample-code](../includes/snippets/cli/list-businessscenariotask-e3-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/list-businessscenariotask-e3-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/list-businessscenariotask-e3-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/list-businessscenariotask-e3-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/list-businessscenariotask-e3-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)
[!INCLUDE [sample-code](../includes/snippets/powershell/list-businessscenariotask-e3-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/list-businessscenariotask-e3-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

#### Response

The following example shows the response.
Expand Down
1 change: 0 additions & 1 deletion api-reference/beta/api/chatmessage-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,6 @@ GET https://graph.microsoft.com/beta/chats/19:e2ed97baac8e4bffbb91299a38996790@t

---


#### Response

The following example shows the response. The message body contains two attachments. The value of the **contentType** property of the Loop component is `application/vnd.microsoft.card.fluidEmbedCard`, and the value of the **contentType** property of the placeholder card is `application/vnd.microsoft.card.codesnippet`.
Expand Down
1 change: 0 additions & 1 deletion api-reference/beta/api/signin-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Retrieve a specific Microsoft Entra user [sign-in](../resources/signin.md) event

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).

<!-- { "blockType": "ignored" } // Note: Removing this line will result in the permissions autogeneration tool overwriting the table. -->
[!INCLUDE [permissions-table](../includes/permissions/signin-get-permissions.md)]

[!INCLUDE [rbac-signin-apis-read](../includes/rbac-for-apis/rbac-signin-apis-read.md)]
Expand Down
1 change: 0 additions & 1 deletion api-reference/beta/api/signin-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ The maximum and default page size is 1,000 objects and by default, the most rece

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).

<!-- { "blockType": "ignored" } // Note: Removing this line will result in the permissions autogeneration tool overwriting the table. -->
[!INCLUDE [permissions-table](../includes/permissions/signin-list-permissions.md)]

[!INCLUDE [rbac-signin-apis-read](../includes/rbac-for-apis/rbac-signin-apis-read.md)]
Expand Down
33 changes: 32 additions & 1 deletion api-reference/beta/api/teamschannelplanner-list-plans.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,46 @@ This method can return any of the [HTTP status codes](/graph/errors). The most c

The following example shows a request.

# [HTTP](#tab/http)
<!-- {
"blockType": "request",
"name": "list_plans_owned_by_channel",
"sampleKeys" : ["a738af50-90f1-472c-b3c3-a468f88ceaba", "19:[email protected]"]
}-->
```http
```msgraph-interactive
GET https://graph.microsoft.com/beta/teams/a738af50-90f1-472c-b3c3-a468f88ceaba/channels/19:[email protected]/planner/plans
```

# [C#](#tab/csharp)
[!INCLUDE [sample-code](../includes/snippets/csharp/list-plans-owned-by-channel-csharp-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [CLI](#tab/cli)
[!INCLUDE [sample-code](../includes/snippets/cli/list-plans-owned-by-channel-cli-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Go](#tab/go)
[!INCLUDE [sample-code](../includes/snippets/go/list-plans-owned-by-channel-go-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Java](#tab/java)
[!INCLUDE [sample-code](../includes/snippets/java/list-plans-owned-by-channel-java-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [JavaScript](#tab/javascript)
[!INCLUDE [sample-code](../includes/snippets/javascript/list-plans-owned-by-channel-javascript-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PHP](#tab/php)
[!INCLUDE [sample-code](../includes/snippets/php/list-plans-owned-by-channel-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/list-plans-owned-by-channel-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

---

### Response

The following example shows the response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ GET https://graph.microsoft.com/beta/tenantRelationships/findTenantInformationBy
[!INCLUDE [sample-code](../includes/snippets/php/tenantrelationshiprootthisfindtenantinformationbytenantid-php-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [PowerShell](#tab/powershell)
[!INCLUDE [sample-code](../includes/snippets/powershell/tenantrelationshiprootthisfindtenantinformationbytenantid-powershell-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]

# [Python](#tab/python)
[!INCLUDE [sample-code](../includes/snippets/python/tenantrelationshiprootthisfindtenantinformationbytenantid-python-snippets.md)]
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: "Automatically generated file. DO NOT MODIFY"
mgc-beta security cases ediscovery-cases legal-holds create --ediscovery-case-id {ediscoveryCase-id} --body '{\
"displayName": "My legalHold with sources",\
"description": "Created from Graph API",\
"contentQuery": "KQL content query"\
"contentQuery": "KQL content query",\
}\
'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Automatically generated file. DO NOT MODIFY"
```bash


mgc security labels retention-labels create --body '{\
mgc-beta security labels retention-labels create --body '{\
"@odata.type": "#microsoft.graph.security.retentionLabel",\
"displayName": "Retention Schedule 10005",\
"behaviorDuringRetentionPeriod": "retain",\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"

mgc-beta security cases ediscovery-cases legal-holds user-sources create --ediscovery-case-id {ediscoveryCase-id} --ediscovery-hold-policy-id {ediscoveryHoldPolicy-id} --body '{\
"email": "[email protected]",\
"includedSources": "mailbox, site"\
"includedSources": "mailbox"\
}\
'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mgc-beta security cases ediscovery-cases searches microsoft-graph-security-expor
"displayName": "Export 4",\
"exportCriteria": "partiallyIndexed",\
"exportLocation": "responsiveLocations, nonresponsiveLocations",\
"additionalOptions": "teamsAndYammerConversations, cloudAttachments, allDocumentVersions, subfolderContents, listAttachments",\
"additionalOptions": "advancedIndexing, subfolderContents, allItemsInFolder, listAttachments, teamsAndYammerConversations, htmlTranscripts, cloudAttachments, includeFolderAndPath, splitSource, condensePaths, friendlyName, optimizedPartitionSize, includeReport",\
"exportFormat": "eml"\
}\
'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ mgc-beta security cases ediscovery-cases searches microsoft-graph-security-expor
"exportCriteria": "partiallyIndexed",\
"exportLocation": "responsiveLocations",\
"additionalOptions": "cloudAttachments",\
"exportFormat": "eml"\
"exportFormat": "eml",\
"cloudAttachmentVersion": "all",\
"documentVersion": "recent100"\
}\
'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ description: "Automatically generated file. DO NOT MODIFY"
```bash


mgc-beta solutions business-scenarios planner tasks list --business-scenario-id {businessScenario-id}
mgc-beta solutions business-scenarios planner tasks list --business-scenario-id {businessScenario-id} --filter "businessScenarioProperties/externalObjectId eq 'Order"

```
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ description: "Automatically generated file. DO NOT MODIFY"
```bash


mgc-beta solutions business-scenarios planner tasks list --business-scenario-id {businessScenario-id} --filter "location/microsoft.graph.businessScenarioGroupTarget/groupId eq '7a339254-4b2b-4410-b295-c890a16776ee'"
mgc-beta solutions business-scenarios planner tasks list --business-scenario-id {businessScenario-id} --filter "target/microsoft.graph.businessScenarioGroupTarget/groupId eq '7a339254-4b2b-4410-b295-c890a16776ee'"

```
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
description: "Automatically generated file. DO NOT MODIFY"
---

```bash


mgc-beta teams channels planner plans list --team-id {team-id} --channel-id {channel-id}

```
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ description: "Automatically generated file. DO NOT MODIFY"


mgc teams channels messages create --team-id {team-id} --channel-id {channel-id} --body '{\
"body": {\
"contentType": "html",\
"content": "Testing with file share link. <attachment id=\"668f7fa8-8129-4de7-b32b-fe1b442e6ef1\"></attachment>"\
},\
"attachments": [\
{\
"id": "668f7fa8-8129-4de7-b32b-fe1b442e6ef1",\
"contentType": "reference",\
"contentUrl": "https://teamsgraph-my.sharepoint.com/:w:/g/personal/test_teamsgraph_onmicrosoft_com/Eah_j2YpgedNsyv-G0QubvEBma6Sd_76UtYkXwoJ-nYVEg?e=0H2Ibm"\
}\
]\
"body": {\
"contentType": "html",\
"content": "Testing with file share link. <attachment id=\"668f7fa8-8129-4de7-b32b-fe1b442e6ef1\"></attachment>"\
},\
"attachments": [\
{\
"id": "668f7fa8-8129-4de7-b32b-fe1b442e6ef1",\
"contentType": "reference",\
"contentUrl": "https://teamsgraph-my.sharepoint.com/:w:/g/personal/test_teamsgraph_onmicrosoft_com/Eah_j2YpgedNsyv-G0QubvEBma6Sd_76UtYkXwoJ-nYVEg?e=0H2Ibm"\
}\
]\
}\
'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@ description: "Automatically generated file. DO NOT MODIFY"
```bash


mgc education classes assignment-settings patch --education-class-id {educationClass-id} --body '{\
mgc-beta education classes assignment-settings patch --education-class-id {educationClass-id} --body '{\
"gradingCategories@delta": [\
{\
// Change this grading category's name\
"id": "03bd9196-ce2e-41bd-902f-df9ae02de4db",\
"displayName": "Lab Updated"\
"id": "fb859cd3-943b-4cd6-9bbe-fe1c39eace0e",\
"displayName": "Lab Test"\
},\
{\
// Delete this grading category \
// Delete this grading category\
"@odata.context": "https://graph.microsoft.com/beta/$metadata#gradingCategories/$deletedEntity",\
"id": "109e5d73-3ef7-42a5-88d8-7e30cdb85f06",\
"id": "e2a86277-24f9-4f29-8196-8c83fc69d00d",\
"reason": "deleted"\
},\
{\
// Add a new grading category \
"displayName": "New Homework",\
"percentageWeight": 50\
// Add a new grading category\
"displayName": "Lab Practice",\
"percentageWeight": 30\
},\
{\
"displayName": "Lab Theory",\
"percentageWeight": 10\
}\
]\
}\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ description: "Automatically generated file. DO NOT MODIFY"
```bash


mgc-beta admin windows updates products microsoft-graph-windows-updates-find-by-catalog-id-with-catalog-id get --catalog-id {catalog-id}
mgc-beta admin windows updates products microsoft-graph-windows-updates-find-by-kb-number-with-kb-number get --kb-number {kb-number-id}

```
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "Automatically generated file. DO NOT MODIFY"
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models.Security;
using Microsoft.Graph.Beta.Models.Security;

var requestBody = new RetentionLabel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using Microsoft.Graph.Beta.Models.Security;
var requestBody = new UserSource
{
Email = "[email protected]",
IncludedSources = SourceType.Mailbox | SourceType.Site,
IncludedSources = SourceType.Mailbox,
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@ var requestBody = new AddToReviewSetPostRequestBody
Id = "c17e91d6-6bc0-4ecb-b388-269ea3d4ffb7",
},
AdditionalDataOptions = AdditionalDataOptions.LinkedFiles,
AdditionalData = new Dictionary<string, object>
{
{
"cloudAttachmentVersion" , "latest"
},
{
"documentVersion" , "recent10"
},
},
CloudAttachmentVersion = CloudAttachmentVersion.Latest,
DocumentVersion = DocumentVersion.Recent10,
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ description: "Automatically generated file. DO NOT MODIFY"
// Dependencies
using Microsoft.Graph.Beta.Security.Cases.EdiscoveryCases.Item.Searches.Item.MicrosoftGraphSecurityEstimateStatistics;
using Microsoft.Graph.Beta.Models.Security;

var requestBody = new EstimateStatisticsPostRequestBody
{
AdditionalData = new Dictionary<string, object>
{
{
"statisticsOptions" , "includeRefiners, includeQueryStats, includeUnindexedStats, advancedIndexing, locationsWithoutHits"
},
},
StatisticsOptions = StatisticsOptions.IncludeRefiners | StatisticsOptions.IncludeQueryStats | StatisticsOptions.IncludeUnindexedStats | StatisticsOptions.AdvancedIndexing | StatisticsOptions.LocationsWithoutHits,
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var requestBody = new ExportReportPostRequestBody
DisplayName = "Export 4",
ExportCriteria = ExportCriteria.PartiallyIndexed,
ExportLocation = ExportLocation.ResponsiveLocations | ExportLocation.NonresponsiveLocations,
AdditionalOptions = AdditionalOptions.None | AdditionalOptions.SubfolderContents | AdditionalOptions.None | AdditionalOptions.ListAttachments | AdditionalOptions.TeamsAndYammerConversations | AdditionalOptions.None | AdditionalOptions.CloudAttachments,
AdditionalOptions = AdditionalOptions.AdvancedIndexing | AdditionalOptions.SubfolderContents | AdditionalOptions.AllItemsInFolder | AdditionalOptions.ListAttachments | AdditionalOptions.TeamsAndYammerConversations | AdditionalOptions.HtmlTranscripts | AdditionalOptions.CloudAttachments,
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
Expand Down
Loading

0 comments on commit 3a7510a

Please sign in to comment.