APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
The developer-provided id property of the externalItem. If no item already exists with this id, a new item is created. If an item already exists with this id, it is overwritten by the object sent in the body.
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Content-Type
application/json. Required.
Request body
In the request body, supply a JSON representation of an externalItem object. The payload is limited to 4 MB.
Creating an externalItem
When creating an externalItem, the following fields are required: acl, and properties. The properties object must contain at least one property.
All DateTime type properties must be in ISO 8601 format.
Properties on an externalItem should use type specifiers in the payload in the following scenarios:
For String type properties, if the value contains non-ASCII characters.
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new Microsoft.Graph.Beta.External.Connections.Item.Items.Item.Item
{
AdditionalData = new Dictionary<string, object>
{
{
"acl" , new List<>
{
new
{
Type = "user",
Value = "e811976d-83df-4cbd-8b9b-5215b18aa874",
AccessType = "grant",
IdentitySource = "azureActiveDirectory",
},
new
{
Type = "group",
Value = "14m1b9c38qe647f6a",
AccessType = "deny",
IdentitySource = "external",
},
}
},
{
"properties" , new
{
Title = "Error in the payment gateway",
Priority = 1,
Assignee = "john@contoso.com",
}
},
{
"content" , new
{
Value = "Error in payment gateway...",
Type = "text",
}
},
},
};
await graphClient.External.Connections["{externalConnection-id}"].Items["{externalItem-id}"].PutAsync(requestBody);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
requestBody := graphmodels.NewItem()
additionalData := map[string]interface{}{
:= graphmodels.New()
type := "user"
.SetType(&type)
value := "e811976d-83df-4cbd-8b9b-5215b18aa874"
.SetValue(&value)
accessType := "grant"
.SetAccessType(&accessType)
identitySource := "azureActiveDirectory"
.SetIdentitySource(&identitySource)
:= graphmodels.New()
type := "group"
.SetType(&type)
value := "14m1b9c38qe647f6a"
.SetValue(&value)
accessType := "deny"
.SetAccessType(&accessType)
identitySource := "external"
.SetIdentitySource(&identitySource)
acl := []graphmodels.Objectable {
,
,
}
properties := graphmodels.New()
title := "Error in the payment gateway"
properties.SetTitle(&title)
priority := int32(1)
properties.SetPriority(&priority)
assignee := "john@contoso.com"
properties.SetAssignee(&assignee)
requestBody.SetProperties(properties)
content := graphmodels.New()
value := "Error in payment gateway..."
content.SetValue(&value)
type := "text"
content.SetType(&type)
requestBody.SetContent(content)
}
requestBody.SetAdditionalData(additionalData)
graphClient.External().ConnectionsById("externalConnection-id").ItemsById("externalItem-id").Put(context.Background(), requestBody, nil)
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new Item();
$additionalData = [
'acl' => $acl1 = new ();
$ acl1->setType('user');
$ acl1->setValue('e811976d-83df-4cbd-8b9b-5215b18aa874');
$ acl1->setAccessType('grant');
$ acl1->setIdentitySource('azureActiveDirectory');
$aclArray []= $acl1;
$acl2 = new ();
$ acl2->setType('group');
$ acl2->setValue('14m1b9c38qe647f6a');
$ acl2->setAccessType('deny');
$ acl2->setIdentitySource('external');
$aclArray []= $acl2;
$requestBody->setAcl($aclArray);
'properties' => $requestBody = new Properties();
$ requestBody->setTitle('Error in the payment gateway');
$requestBody->setPriority(1);
$ requestBody->setAssignee('john@contoso.com');
$requestBody->setProperties($properties);
'content' => $requestBody = new Content();
$ requestBody->setValue('Error in payment gateway...');
$ requestBody->setType('text');
$requestBody->setContent($content);
];
$requestBody->setAdditionalData($additionalData);
$graphServiceClient->external()->connectionsById('externalConnection-id')->itemsById('externalItem-id')->put($requestBody);
Important
Microsoft Graph SDKs use the v1.0 version of the API by default, and do not support all the types, properties, and APIs available in the beta version. For details about accessing the beta API with the SDK, see Use the Microsoft Graph SDKs with the beta API.