---
title: "Update pinned settings"
method: PUT
path: "/bus/settings/pinned"
tags: ["bus"]
---

# Update pinned settings

`PUT /bus/settings/pinned`

Updates the pinned settings.

## Request body

- PinnedSettings
  - `currency` string — An unsigned amount of Hastings, the smallest unit of currency in Sia. 1 Siacoin (SC) equals 10^24 Hastings (H).
  - `threshold` number — A percentage between 0 and 1 that determines when the pinned settings are updated based on the exchange rate at the time
  - `gougingSettingsPins` GougingSettingsPins
    - `maxDownload` Pin
      - `pinned` boolean — Whether pin is enabled
      - `value` number — The value of the underlying currency to which the setting is pinned
    - `maxStorage` Pin
      - `pinned` boolean — Whether pin is enabled
      - `value` number — The value of the underlying currency to which the setting is pinned
    - `maxUpload` Pin
      - `pinned` boolean — Whether pin is enabled
      - `value` number — The value of the underlying currency to which the setting is pinned

## Response `200`

Successfully updated pinned settings

## Other responses

- `400` — Invalid settings
- `500` — Internal server error

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/revisions/184a3d5207da/schema)
