> ## 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 Market Maker

> Update an existing market maker.

```json theme={null}
PATCH /exchange/market-makers/{id}
```

**Parameters:**

* `id` (string, required): The unique ID of the market maker to update.

* `archived` (boolean, optional): Whether the market maker is archived.

* `swap_provider` (boolean, optional): Whether the market maker is a swap provider.

* `swap_weight` (integer, optional): Swap weight.

**Sample Request**

```bash theme={null}
curl -X PATCH "https://exchange.spendjuice.com/v1/exchange/market-makers/7da75a46-a1bc-11ee-9a32-560f156a658b" \
-H "Authorization:  YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "archived": true,
  "swap_provider": false,
  "swap_weight": 0
}'
```

**Sample Response**

```json theme={null}
{
  "data": {
    "archived": true,
    "contacts": [
      {
        "email": "test@user.com",
        "id": "7da8e726-a1bc-11ee-80cf-560f156a658b",
        "name": "Test User",
        "type": "user"
      }
    ],
    "email": "anon@nymous.com",
    "entity": {
      "id": "6ebe0a0f-bb8f-49be-80ea-c6b72c348fea",
      "type": "business"
    },
    "id": "7da75a46-a1bc-11ee-9a32-560f156a658b",
    "name": "Anon Nymous",
    "swap_provider": false,
    "swap_weight": 0
  }
}
```
