Namespace: microsoft.graph
Important
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.
Update multiple threat intelligence (TI) indicators in one request instead of multiple requests.
This API is available in the following national cloud deployments.
Global service |
US Government L4 |
US Government L5 (DOD) |
China operated by 21Vianet |
✅ |
❌ |
❌ |
❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type |
Least privileged permissions |
Higher privileged permissions |
Delegated (work or school account) |
ThreatIndicators.ReadWrite.OwnedBy |
Not available. |
Delegated (personal Microsoft account) |
Not supported. |
Not supported. |
Application |
ThreatIndicators.ReadWrite.OwnedBy |
Not available. |
HTTP request
POST /security/tiIndicators/updateTiIndicators
Request body
In the request body, provide a JSON object with the following parameters. For details about properties that can be updated, see update tiIndicator. Required fields for each tiIndicator are: id
, expirationDateTime
, targetProduct
.
Parameter |
Type |
Description |
value |
tiIndicator collection |
Collection of tiIndicators to update. Each entity must have id and other editable properties to be updated. |
Response
If successful, this method returns a 200 OK
response code and a collection of tiIndicator objects in the response body. If there is an error, this method returns a 206 Partial Content
response code. See Errors for more information.
Examples
The following example shows how to call this API.
Request
The following example shows a request.
POST https://graph.microsoft.com/beta/security/tiIndicators/updateTiIndicators
Content-type: application/json
{
"value": [
{
"id": "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
"additionalInformation": "mytest"
},
{
"id": "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e",
"additionalInformation": "test again"
}
]
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Security.TiIndicators.UpdateTiIndicators;
using Microsoft.Graph.Beta.Models;
var requestBody = new UpdateTiIndicatorsPostRequestBody
{
Value = new List<TiIndicator>
{
new TiIndicator
{
Id = "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
AdditionalInformation = "mytest",
},
new TiIndicator
{
Id = "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e",
AdditionalInformation = "test again",
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Security.TiIndicators.UpdateTiIndicators.PostAsUpdateTiIndicatorsPostResponseAsync(requestBody);
mgc-beta security ti-indicators update-ti-indicators post --body '{\
"value": [\
{\
"id": "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",\
"additionalInformation": "mytest"\
},\
{\
"id": "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e",\
"additionalInformation": "test again"\
}\
]\
}\
\
'
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphsecurity "github.com/microsoftgraph/msgraph-beta-sdk-go/security"
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
//other-imports
)
requestBody := graphsecurity.NewUpdateTiIndicatorsPostRequestBody()
tiIndicator := graphmodels.NewTiIndicator()
id := "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4"
tiIndicator.SetId(&id)
additionalInformation := "mytest"
tiIndicator.SetAdditionalInformation(&additionalInformation)
tiIndicator1 := graphmodels.NewTiIndicator()
id := "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e"
tiIndicator1.SetId(&id)
additionalInformation := "test again"
tiIndicator1.SetAdditionalInformation(&additionalInformation)
value := []graphmodels.TiIndicatorable {
tiIndicator,
tiIndicator1,
}
requestBody.SetValue(value)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
updateTiIndicators, err := graphClient.Security().TiIndicators().UpdateTiIndicators().PostAsUpdateTiIndicatorsPostResponse(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.beta.security.tiindicators.updatetiindicators.UpdateTiIndicatorsPostRequestBody updateTiIndicatorsPostRequestBody = new com.microsoft.graph.beta.security.tiindicators.updatetiindicators.UpdateTiIndicatorsPostRequestBody();
LinkedList<TiIndicator> value = new LinkedList<TiIndicator>();
TiIndicator tiIndicator = new TiIndicator();
tiIndicator.setId("c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4");
tiIndicator.setAdditionalInformation("mytest");
value.add(tiIndicator);
TiIndicator tiIndicator1 = new TiIndicator();
tiIndicator1.setId("e58c072b-c9bb-a5c4-34ce-eb69af44fb1e");
tiIndicator1.setAdditionalInformation("test again");
value.add(tiIndicator1);
updateTiIndicatorsPostRequestBody.setValue(value);
var result = graphClient.security().tiIndicators().updateTiIndicators().post(updateTiIndicatorsPostRequestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const tiIndicator = {
value: [
{
id: 'c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4',
additionalInformation: 'mytest'
},
{
id: 'e58c072b-c9bb-a5c4-34ce-eb69af44fb1e',
additionalInformation: 'test again'
}
]
};
await client.api('/security/tiIndicators/updateTiIndicators')
.version('beta')
.post(tiIndicator);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Security\TiIndicators\UpdateTiIndicators\UpdateTiIndicatorsPostRequestBody;
use Microsoft\Graph\Beta\Generated\Models\TiIndicator;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new UpdateTiIndicatorsPostRequestBody();
$valueTiIndicator1 = new TiIndicator();
$valueTiIndicator1->setId('c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4');
$valueTiIndicator1->setAdditionalInformation('mytest');
$valueArray []= $valueTiIndicator1;
$valueTiIndicator2 = new TiIndicator();
$valueTiIndicator2->setId('e58c072b-c9bb-a5c4-34ce-eb69af44fb1e');
$valueTiIndicator2->setAdditionalInformation('test again');
$valueArray []= $valueTiIndicator2;
$requestBody->setValue($valueArray);
$result = $graphServiceClient->security()->tiIndicators()->updateTiIndicators()->post($requestBody)->wait();
Import-Module Microsoft.Graph.Beta.Security
$params = @{
value = @(
@{
id = "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4"
additionalInformation = "mytest"
}
@{
id = "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e"
additionalInformation = "test again"
}
)
}
Update-MgBetaSecurityTiIndicatorMultiple -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.security.tiindicators.update_ti_indicators.update_ti_indicators_post_request_body import UpdateTiIndicatorsPostRequestBody
from msgraph_beta.generated.models.ti_indicator import TiIndicator
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = UpdateTiIndicatorsPostRequestBody(
value = [
TiIndicator(
id = "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
additional_information = "mytest",
),
TiIndicator(
id = "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e",
additional_information = "test again",
),
],
)
result = await graph_client.security.ti_indicators.update_ti_indicators.post(request_body)
Response
The following example shows the response.
Note
The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.tiIndicator",
"id": "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4",
"azureTenantId": "XXXXXXXXXXXXXXXXXX",
"action": null,
"additionalInformation": "mytest",
"activityGroupNames": [],
"confidence": 0,
"description": "This is a test indicator for demo purpose. Take no action on any observables set in this indicator.",
}
]
}