Edit

Update installedContentItem

Namespace: microsoft.graph.security.contentManagement

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.

Install a single contentItem from a package into the calling tenant or update an existing installedContentItem under its parent installedPackage.

This operation uses caller-keyed upsert semantics: if the content item identified by ({packageId}, {contentId}) isn't yet installed in the tenant, the service creates the installation and returns 200 OK; if the content item is already installed, the service updates it and returns 200 OK. Conditional write headers (ETag and If-Match) aren't supported.

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) ContentHub-Installed.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application ContentHub-Installed.ReadWrite.All Not available.

HTTP request

PATCH /security/contentManagement/installedPackages/{packageId}/contents/{contentId}

Path parameters

Parameter Type Description
packageId String The stable identifier (id) of the parent installedPackage.
contentId String The customer-facing identifier (id) of the installedContentItem to install or update.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the installedContentItem object containing version assertions. When supplied, version and packageVersion must match the resolved catalog content item and the tenant's installed package state; omitting them lets the service resolve the applicable versions. All other properties on installedContentItem are read-only and must not be supplied.

Property Type Description
packageVersion String The owning package version assertion for this content item installation.
version String The content item version assertion. When supplied, it must match the resolved catalog content item.

Response

If successful, this method returns a 200 OK response code and an microsoft.graph.security.contentManagement.installedContentItem object in the response body whether the installation was created or updated.

Examples

Request

The following example shows a request to install or update a content item under an installed package.

PATCH https://graph.microsoft.com/beta/security/contentManagement/installedPackages/azuresentinel.azure-sentinel-solution-entraid/contents/EntraIDSuspiciousConsentGrant
Content-Type: application/json

{
  "version": "2.0.1",
  "packageVersion": "3.1.0"
}

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

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#security/contentManagement/installedPackages/azuresentinel.azure-sentinel-solution-entraid/contents/$entity",
  "@odata.type": "#microsoft.graph.security.contentManagement.installedContentItem",
  "id": "EntraIDSuspiciousConsentGrant",
  "contentProductId": "azuresentinel.analyticsrule.entraidsuspiciousconsentgrant",
  "kind": "AnalyticsRule",
  "version": "2.0.1",
  "packageId": "azuresentinel.azure-sentinel-solution-entraid-sl",
  "packageVersion": "3.1.0",
  "installedDateTime": "2026-08-25T09:21:47Z",
  "lastModifiedDateTime": "2026-08-25T09:21:47Z"
}