Wählen Sie für diese API die Als am wenigsten privilegierten Berechtigungen gekennzeichneten Berechtigungen aus. Verwenden Sie nur dann eine Berechtigung mit höheren Berechtigungen , wenn dies für Ihre App erforderlich ist. Ausführliche Informationen zu delegierten Berechtigungen und Anwendungsberechtigungen finden Sie unter Berechtigungstypen. Weitere Informationen zu diesen Berechtigungen finden Sie in der Berechtigungsreferenz.
Wenn die Methode erfolgreich verläuft, werden der 200 OK Antwortcode und ein aktualisiertes microsoft.graph.termStore.store -Objekt im Antworttext zurückgegeben.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models.TermStore;
var requestBody = new Store
{
DefaultLanguageTag = "en-US",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Sites["{site-id}"].TermStore.PatchAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphmodelstermstore "github.com/microsoftgraph/msgraph-sdk-go/models/termstore"
//other-imports
)
requestBody := graphmodelstermstore.NewStore()
defaultLanguageTag := "en-US"
requestBody.SetDefaultLanguageTag(&defaultLanguageTag)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
termStore, err := graphClient.Sites().BySiteId("site-id").TermStore().Patch(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.models.termstore.Store store = new com.microsoft.graph.models.termstore.Store();
store.setDefaultLanguageTag("en-US");
com.microsoft.graph.models.termstore.Store result = graphClient.sites().bySiteId("{site-id}").termStore().patch(store);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\TermStore\Store;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new Store();
$requestBody->setDefaultLanguageTag('en-US');
$result = $graphServiceClient->sites()->bySiteId('site-id')->termStore()->patch($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.term_store.store import Store
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Store(
default_language_tag = "en-US",
)
result = await graph_client.sites.by_site_id('site-id').term_store.patch(request_body)