Skip to main content
PATCH
/
v2
/
tenant
/
preferences
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" } }'
{
  "success": true,
  "data": {
    "swap": {
      "slippageBps": 300,
      "priceImpactBps": null,
      "thresholdUsd": "5.00"
    }
  }
}

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.

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.

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.
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" } }'
{
  "success": true,
  "data": {
    "swap": {
      "slippageBps": 300,
      "priceImpactBps": null,
      "thresholdUsd": "5.00"
    }
  }
}