***

title: update
slug: /reference/python/rest/fabric/ai-agents/update
description: Partially update an AI agent resource.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Partially update an AI agent resource. Uses PATCH, so only provided fields are changed.

<EndpointSchemaSnippet endpoint="PATCH /api/fabric/resources/ai_agents/{id}" />

## **Response Example**

<EndpointResponseSnippet endpoint="PATCH /api/fabric/resources/ai_agents/{id}" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

updated = client.fabric.ai_agents.update("agent-id", name="updated-name")
print(f"Updated: {updated['display_name']}")
```