// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.ManagedTenants;
var requestBody = new TenantCustomizedInformation
{
OdataType = "#microsoft.graph.managedTenants.tenantCustomizedInformation",
TenantId = "String",
Contacts = new List<TenantContactInformation>
{
new TenantContactInformation
{
OdataType = "microsoft.graph.managedTenants.tenantContactInformation",
Name = "String",
Title = "String",
Email = "String",
Phone = "String",
Notes = "String",
},
},
Website = "String",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.TenantRelationships.ManagedTenants.TenantsCustomizedInformation["{tenantCustomizedInformation-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.models.managedtenants.TenantCustomizedInformation tenantCustomizedInformation = new com.microsoft.graph.beta.models.managedtenants.TenantCustomizedInformation();
tenantCustomizedInformation.setOdataType("#microsoft.graph.managedTenants.tenantCustomizedInformation");
tenantCustomizedInformation.setTenantId("String");
LinkedList<com.microsoft.graph.beta.models.managedtenants.TenantContactInformation> contacts = new LinkedList<com.microsoft.graph.beta.models.managedtenants.TenantContactInformation>();
com.microsoft.graph.beta.models.managedtenants.TenantContactInformation tenantContactInformation = new com.microsoft.graph.beta.models.managedtenants.TenantContactInformation();
tenantContactInformation.setOdataType("microsoft.graph.managedTenants.tenantContactInformation");
tenantContactInformation.setName("String");
tenantContactInformation.setTitle("String");
tenantContactInformation.setEmail("String");
tenantContactInformation.setPhone("String");
tenantContactInformation.setNotes("String");
contacts.add(tenantContactInformation);
tenantCustomizedInformation.setContacts(contacts);
tenantCustomizedInformation.setWebsite("String");
com.microsoft.graph.models.managedtenants.TenantCustomizedInformation result = graphClient.tenantRelationships().managedTenants().tenantsCustomizedInformation().byTenantCustomizedInformationId("{tenantCustomizedInformation-id}").patch(tenantCustomizedInformation);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.managed_tenants.tenant_customized_information import TenantCustomizedInformation
from msgraph_beta.generated.models.managed_tenants.tenant_contact_information import TenantContactInformation
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = TenantCustomizedInformation(
odata_type = "#microsoft.graph.managedTenants.tenantCustomizedInformation",
tenant_id = "String",
contacts = [
TenantContactInformation(
odata_type = "microsoft.graph.managedTenants.tenantContactInformation",
name = "String",
title = "String",
email = "String",
phone = "String",
notes = "String",
),
],
website = "String",
)
result = await graph_client.tenant_relationships.managed_tenants.tenants_customized_information.by_tenant_customized_information_id('tenantCustomizedInformation-id').patch(request_body)