***

title: update
slug: /reference/python/rest/fabric/swml-scripts/update
description: Replace a SWML script resource.
max-toc-depth: 3
---------------------

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

Replace a SWML script resource. Uses PUT for full replacement.

<EndpointSchemaSnippet endpoint="PUT /api/fabric/resources/swml_scripts/{id}" />

## **Response Example**

<EndpointResponseSnippet endpoint="PUT /api/fabric/resources/swml_scripts/{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.swml_scripts.update("resource-id", display_name="updated-name")
print(f"Updated: {updated['display_name']}")
```