Dans le corps de la demande, fournissez uniquement les valeurs des propriétés à mettre à jour. Les propriétés existantes qui ne sont pas incluses dans le corps de la demande conservent leurs valeurs précédentes ou sont recalculées en fonction des modifications apportées à d’autres valeurs de propriété.
Le tableau suivant spécifie les propriétés qui peuvent être mises à jour.
Propriété
Type
Description
description
Chaîne
Brève description de l’acronyme qui donne aux utilisateurs plus d’informations sur l’acronyme et ce qu’il représente. Hérité de searchAnswer.
displayName
Chaîne
Forme abrégée ou acronyme réel. Hérité de searchAnswer.
standsFor
Chaîne
Ce que signifie l’acronyme.
state
microsoft.graph.search.answerState
État de l’acronyme. Les valeurs possibles sont les suivantes : published, draft, excluded, unknownFutureValue.
webUrl
Chaîne
URL de la page ou du site web où les utilisateurs peuvent accéder pour plus d’informations sur l’acronyme. Hérité de searchAnswer.
Réponse
Si elle réussit, cette méthode renvoie un code de réponse 204 No Content.
PATCH https://graph.microsoft.com/v1.0/search/acronyms/733b26d5-af76-4eea-ac69-1a0ce8716897
Content-Type: application/json
{
"description": "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers."
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models.Search;
var requestBody = new Acronym
{
Description = "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers.",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Search.Acronyms["{acronym-id}"].PatchAsync(requestBody);
mgc search acronyms patch --acronym-id {acronym-id} --body '{\
"description": "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers."\
}\
'
// 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"
graphmodelssearch "github.com/microsoftgraph/msgraph-sdk-go/models/search"
//other-imports
)
requestBody := graphmodelssearch.NewAcronym()
description := "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers."
requestBody.SetDescription(&description)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
acronyms, err := graphClient.Search().Acronyms().ByAcronymId("acronym-id").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.search.Acronym acronym = new com.microsoft.graph.models.search.Acronym();
acronym.setDescription("A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers.");
com.microsoft.graph.models.search.Acronym result = graphClient.search().acronyms().byAcronymId("{acronym-id}").patch(acronym);
const options = {
authProvider,
};
const client = Client.init(options);
const acronym = {
description: 'A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers.'
};
await client.api('/search/acronyms/733b26d5-af76-4eea-ac69-1a0ce8716897')
.update(acronym);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\Search\Acronym;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new Acronym();
$requestBody->setDescription('A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers.');
$result = $graphServiceClient->search()->acronyms()->byAcronymId('acronym-id')->patch($requestBody)->wait();
Import-Module Microsoft.Graph.Search
$params = @{
description = "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers."
}
Update-MgSearchAcronym -AcronymId $acronymId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.search.acronym import Acronym
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Acronym(
description = "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers.",
)
result = await graph_client.search.acronyms.by_acronym_id('acronym-id').patch(request_body)