Skip to content

Latest commit

 

History

History
131 lines (95 loc) · 4.42 KB

File metadata and controls

131 lines (95 loc) · 4.42 KB
title Update agentCollection
description Update the properties of an agentCollection object.
author jasondou
ms.date 11/06/2025
ms.localizationpriority medium
ms.subservice entra-id
doc_type apiPageType

Update agentCollection

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Update the properties of an agentCollection object.

[!INCLUDE national-cloud-support]

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.

[!INCLUDE permissions-table]

Important

In addition to the permissions listed in the preceding table, the following lesser-privileged delegated permissions scoped to the special collections are supported for this API:

  • AgentCollection.ReadWrite.Global for Global collection
  • AgentCollection.ReadWrite.Quarantined for Quarantined collection

[!INCLUDE rbac-agentregistry-apis]

HTTP request

PATCH /agentRegistry/agentCollections/{agentCollectionId}

Request headers

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

Request body

[!INCLUDE table-intro]

Property Type Description
ownerIds String collection List of owner identifiers for the agent collection, can be users or service principals. Required.
managedBy String Application (service principal) id managing the collection. Optional.
originatingStore String Source system/store where the collection originated. Optional.
createdBy String User who created the collection. Optional.
displayName String Friendly name of the collection. Required.
description String Description / purpose of the collection. Optional.
createdDateTime DateTimeOffset Timestamp when created. Optional.
lastModifiedDateTime DateTimeOffset Timestamp of last update. Optional.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/agentRegistry/agentCollections/{agentCollectionId}
Content-Type: application/json

{
  "displayName": "New Display Name"
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content