> ## Documentation Index
> Fetch the complete documentation index at: https://docs.juicyway.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Swap Configuration

> Update an existing swap configuration.

Endpoint

```json theme={null}
PUT /exchange/swap-configurations/{id}
```

#### **Path Parameters:**

* **`id`** (string, required): Swap Configuration ID.

#### **Request Body:**

**Content Type:** `application/json`
**Sample:**

```json theme={null}
{
  "symbol": "USD-NGN",
  "ttl": 10,
  "type": "buy"
}
```

**Responses**

**`201`** - Swap Configuration Updated

**Sample**

```json theme={null}
{
  "data": {
    "id": "string",
    "order_type": "sell",
    "symbol": "string",
    "ttl": 0
  }
}
```

**`422`** - Unprocessable Entity
