***

title: update
slug: /reference/python/rest/compat/laml-bins/update
description: Update a LAML bin.
max-toc-depth: 3
---------------------

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

Update a LAML bin's content or name. Uses POST (Twilio convention).

<EndpointSchemaSnippet endpoint="POST /Accounts/{AccountSid}/LamlBins/{Sid}" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /Accounts/{AccountSid}/LamlBins/{Sid}" />

## **Example**

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

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

client.compat.laml_bins.update(
    "LB...",
    Name="Greeting",
    Contents=(
        '<?xml version="1.0" encoding="UTF-8"?>'
        "<Response><Say>Goodbye!</Say></Response>"
    )
)
```