POST https://graph.microsoft.com/v1.0/deviceManagement/remoteAssistancePartners
Content-type: application/json
Content-length: 266
{
"@odata.type": "#microsoft.graph.remoteAssistancePartner",
"displayName": "Display Name value",
"onboardingUrl": "https://example.com/onboardingUrl/",
"onboardingStatus": "onboarding",
"lastConnectionDateTime": "2016-12-31T23:58:36.6670033-08:00"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new RemoteAssistancePartner
{
OdataType = "#microsoft.graph.remoteAssistancePartner",
DisplayName = "Display Name value",
OnboardingUrl = "https://example.com/onboardingUrl/",
OnboardingStatus = RemoteAssistanceOnboardingStatus.Onboarding,
LastConnectionDateTime = DateTimeOffset.Parse("2016-12-31T23:58:36.6670033-08:00"),
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.RemoteAssistancePartners.PostAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc device-management remote-assistance-partners create --body '{\
"@odata.type": "#microsoft.graph.remoteAssistancePartner",\
"displayName": "Display Name value",\
"onboardingUrl": "https://example.com/onboardingUrl/",\
"onboardingStatus": "onboarding",\
"lastConnectionDateTime": "2016-12-31T23:58:36.6670033-08:00"\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
RemoteAssistancePartner remoteAssistancePartner = new RemoteAssistancePartner();
remoteAssistancePartner.setOdataType("#microsoft.graph.remoteAssistancePartner");
remoteAssistancePartner.setDisplayName("Display Name value");
remoteAssistancePartner.setOnboardingUrl("https://example.com/onboardingUrl/");
remoteAssistancePartner.setOnboardingStatus(RemoteAssistanceOnboardingStatus.Onboarding);
OffsetDateTime lastConnectionDateTime = OffsetDateTime.parse("2016-12-31T23:58:36.6670033-08:00");
remoteAssistancePartner.setLastConnectionDateTime(lastConnectionDateTime);
RemoteAssistancePartner result = graphClient.deviceManagement().remoteAssistancePartners().post(remoteAssistancePartner);
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.