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)