| 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 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Update the properties of an agentCollection object.
[!INCLUDE national-cloud-support]
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]
PATCH /agentRegistry/agentCollections/{agentCollectionId}| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
[!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. |
If successful, this method returns a 204 No Content response code.
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]
The following example shows the response.
HTTP/1.1 204 No Content