***

title: update
slug: /reference/typescript/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**

```typescript {9}
import { RestClient } from "@signalwire/sdk";

const client = new RestClient({
  project: "your-project-id",
  token: "your-api-token",
  host: "your-space.signalwire.com",
});

await client.compat.lamlBins.update("LB...", {
  Name: "Greeting",
  Contents:
    '<?xml version="1.0" encoding="UTF-8"?>' +
    "<Response><Say>Goodbye!</Say></Response>",
});
```