---
search:
  tags:
    - Account
    - PATCH
seo:
  description: >-
    Changes some settings; null resets a field to its default. The revision must
    be the… Reference for the PATCH /v1/me/settings endpoint in the INVICTUS
    API.
sidebar:
  label: Change settings by revision.
  badge: PATCH
title: Change settings by revision.
type: openapi-operation
---
Changes some settings; null resets a field to its default. The revision must be the current one, or the answer is 409 `stale_revision`.

`PATCH /v1/me/settings`

**Request body** (`application/json`, required)

- `revision` (integer, required) — The revision the change was made on; a stale one is 409 stale\_revision.
- `changes` (object, required) — The settings to change; null resets one to its default.

Request body example:

```json
{
  "revision": 0,
  "changes": {
    "slippagePercent": "auto",
    "swapSlippagePercent": "auto",
    "maxSwapLossPercent": "1234.56",
    "priceImpactPercent": "1234.56",
    "deadlineSeconds": 30,
    "abortOnTickDrift": true,
    "priority": "standard",
    "maxGasUsd": "1234.56",
    "gasReserve": {
      "property1": "1500000",
      "property2": "1500000"
    },
    "autoWrapNative": true,
    "zapAutoBalance": true,
    "exitAsset": "auto",
    "confirmTransactions": true,
    "displayCurrency": "string",
    "explorers": {
      "property1": "string",
      "property2": "string"
    },
    "alerts": {
      "outOfRange": true,
      "nearEdge": true,
      "feesReady": true,
      "transactions": true
    },
    "pairInversions": {
      "property1": true,
      "property2": true
    }
  }
}
```

**Responses**

- `200` — Success.
- `400` — Invalid input; \`errors\` names the fields.
- `401` — No session, or it ended.
- `403` — Not allowed for this account.
- `409` — In conflict with the current state.
- `429` — Too many requests; \`retryAfterSeconds\` says when to ask again.
- `500` — Server error.

Response example, 200:

```json
{
  "settings": {
    "slippagePercent": "auto",
    "swapSlippagePercent": "auto",
    "maxSwapLossPercent": "1234.56",
    "priceImpactPercent": "1234.56",
    "deadlineSeconds": 30,
    "abortOnTickDrift": true,
    "priority": "standard",
    "maxGasUsd": "1234.56",
    "gasReserve": {
      "property1": "1500000",
      "property2": "1500000"
    },
    "autoWrapNative": true,
    "zapAutoBalance": true,
    "exitAsset": "auto",
    "confirmTransactions": true,
    "displayCurrency": "string",
    "explorers": {
      "property1": "string",
      "property2": "string"
    },
    "alerts": {
      "outOfRange": true,
      "nearEdge": true,
      "feesReady": true,
      "transactions": true
    },
    "pairInversions": {
      "property1": true,
      "property2": true
    }
  },
  "defaults": {
    "slippagePercent": "auto",
    "swapSlippagePercent": "auto",
    "maxSwapLossPercent": "1234.56",
    "priceImpactPercent": "1234.56",
    "deadlineSeconds": 30,
    "abortOnTickDrift": true,
    "priority": "standard",
    "maxGasUsd": "1234.56",
    "gasReserve": {
      "property1": "1500000",
      "property2": "1500000"
    },
    "autoWrapNative": true,
    "zapAutoBalance": true,
    "exitAsset": "auto",
    "confirmTransactions": true,
    "displayCurrency": "string",
    "explorers": {
      "property1": "string",
      "property2": "string"
    },
    "alerts": {
      "outOfRange": true,
      "nearEdge": true,
      "feesReady": true,
      "transactions": true
    },
    "pairInversions": {
      "property1": true,
      "property2": true
    }
  },
  "bounds": {
    "property1": {
      "min": "1234.56",
      "max": "1234.56"
    },
    "property2": {
      "min": "1234.56",
      "max": "1234.56"
    }
  },
  "revision": 0,
  "asOf": 1793145600
}
```
