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

# Patch tenant preferences

> Patches the tenant's stored preference defaults.

Patches the tenant's stored preference defaults. Swap settings live under the
`swap` namespace: `slippageBps`, `priceImpactBps`, and `thresholdUsd`
(minimum swap size in USD).

* Auth: `x-api-key` header (required)
* Required scope: `tenant:write`

Schedule is per-strategy — set it via
[`PUT /v2/strategies/{strategyId}/schedule`](/api-reference/endpoints/v2-set-strategy-schedule).

### Patch semantics

Patches are applied per inner field within `swap`:

* **Omitted field** — preserve the current value
* **Explicit `null`** — clear the field (revert to "not configured")
* **Explicit value** — set the field

Empty body `{}` and `{ "swap": {} }` are both 200 no-ops. Sending
`{ "swap": { "slippageBps": null } }` clears `slippageBps` while leaving
`priceImpactBps` and `thresholdUsd` untouched.

<RequestExample>
  ```bash cURL — set slippage and threshold theme={null}
  curl --request PATCH \
    --url 'https://api.glider.fi/v2/tenant/preferences' \
    --header 'x-api-key: gldr_sk_your_api_key' \
    --header 'content-type: application/json' \
    --data '{ "swap": { "slippageBps": 300, "thresholdUsd": "5.00" } }'
  ```

  ```bash cURL — clear a single field theme={null}
  curl --request PATCH \
    --url 'https://api.glider.fi/v2/tenant/preferences' \
    --header 'x-api-key: gldr_sk_your_api_key' \
    --header 'content-type: application/json' \
    --data '{ "swap": { "thresholdUsd": null } }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.glider.fi/v2/tenant/preferences", {
    method: "PATCH",
    headers: {
      "x-api-key": "gldr_sk_your_api_key",
      "content-type": "application/json",
    },
    body: JSON.stringify({ swap: { slippageBps: 300 } }),
  });
  const data = await response.json();
  ```
</RequestExample>

<ResponseExample>
  ```json After patch theme={null}
  {
    "success": true,
    "data": {
      "swap": {
        "slippageBps": 300,
        "priceImpactBps": null,
        "thresholdUsd": "5.00"
      }
    }
  }
  ```
</ResponseExample>
