Flag to indicate whether or not this is the default locale for language fallback. This flag can only be set. To unset, set this property to true on another Localized Notification Message.
Response
If successful, this method returns a 200 OK response code and an updated localizedNotificationMessage object in the response body.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new LocalizedNotificationMessage
{
OdataType = "#microsoft.graph.localizedNotificationMessage",
Locale = "Locale value",
Subject = "Subject value",
MessageTemplate = "Message Template value",
IsDefault = true,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.NotificationMessageTemplates["{notificationMessageTemplate-id}"].LocalizedNotificationMessages["{localizedNotificationMessage-id}"].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"
graphmodels "github.com/microsoftgraph/msgraph-sdk-go/models"
//other-imports
)
requestBody := graphmodels.NewLocalizedNotificationMessage()
locale := "Locale value"
requestBody.SetLocale(&locale)
subject := "Subject value"
requestBody.SetSubject(&subject)
messageTemplate := "Message Template value"
requestBody.SetMessageTemplate(&messageTemplate)
isDefault := true
requestBody.SetIsDefault(&isDefault)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
localizedNotificationMessages, err := graphClient.DeviceManagement().NotificationMessageTemplates().ByNotificationMessageTemplateId("notificationMessageTemplate-id").LocalizedNotificationMessages().ByLocalizedNotificationMessageId("localizedNotificationMessage-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);
LocalizedNotificationMessage localizedNotificationMessage = new LocalizedNotificationMessage();
localizedNotificationMessage.setOdataType("#microsoft.graph.localizedNotificationMessage");
localizedNotificationMessage.setLocale("Locale value");
localizedNotificationMessage.setSubject("Subject value");
localizedNotificationMessage.setMessageTemplate("Message Template value");
localizedNotificationMessage.setIsDefault(true);
LocalizedNotificationMessage result = graphClient.deviceManagement().notificationMessageTemplates().byNotificationMessageTemplateId("{notificationMessageTemplate-id}").localizedNotificationMessages().byLocalizedNotificationMessageId("{localizedNotificationMessage-id}").patch(localizedNotificationMessage);
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.