Elija el permiso o los permisos marcados como con privilegios mínimos para esta API. Use un permiso o permisos con privilegios superiores solo si la aplicación lo requiere. Para obtener más información sobre los permisos delegados y de aplicación, consulte Tipos de permisos. Para obtener más información sobre estos permisos, consulte la referencia de permisos.
En el cuerpo de la solicitud, proporcione solo los valores de las propiedades que se van a actualizar. Las propiedades existentes que no se incluyen en el cuerpo de la solicitud mantienen sus valores anteriores o se recalculan en función de los cambios realizados en otros valores de propiedad.
En la tabla siguiente se especifican las propiedades que se pueden actualizar.
Propiedad
Tipo
Descripción
description
Cadena
Una breve descripción del acrónimo que proporciona a los usuarios más información sobre el acrónimo y lo que significa. Se hereda de searchAnswer.
displayName
Cadena
Forma o acrónimo corto real. Se hereda de searchAnswer.
standsFor
Cadena
Lo que significa el acrónimo.
state
microsoft.graph.search.answerState
Estado del acrónimo. Los valores posibles son: published, draft, excluded y unknownFutureValue.
webUrl
Cadena
Dirección URL de la página o sitio web donde los usuarios pueden ir para obtener más información sobre el acrónimo. Se hereda de searchAnswer.
Respuesta
Si se ejecuta correctamente, este método devuelve un código de respuesta 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)