---
title: "Set DPS (Dynamic Performance Scaling)"
method: PUT
path: "/api/v1/performance/dps"
tags: ["Performance"]
---

# Set DPS (Dynamic Performance Scaling)

`PUT /api/v1/performance/dps`

## Request

- Base URL: `http://miner`
- URL: `http://miner/api/v1/performance/dps`
- Auth: none declared
- TypeScript: <https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api/docs/api/v1/performance/dps/put.ts> (a function with typed inputs; its response is checked against the schema)

Sets DPS for the miner, including DPS enable flag, DPS shutdown enable flag, DPS shutdown duration, DPS target, DPS mode and initial target for DPS.

## Request body

- SetDpsRequestRest
  - `enable` boolean, nullable: Flag if Dynamic Performance Scaling should be enabled
  - `enable_shutdown` boolean, nullable: Flag if shutdown for Dynamic Performance Scaling should be enabled
  - `mode` integer, nullable: Dynamic Performance Scaling mode
  - `on_start_target_percent` integer, nullable: Initial target for Dynamic Performance Scaling in percent
  - `save_action` integer, nullable: Save action (deprecated, value is ignored)
  - `shutdown_duration` Hours
    - `hours` integer, required
  - `target` DpsTarget
    - `target` union
      - object: Power target settings for Dynamic Performance Scaling
        - `powertarget` DpsPowerTarget, required
          - `min_power_target` Power
            - `watt` integer, required
          - `power_step` Power
            - `watt` integer, required
      - object: Hashrate target settings for Dynamic Performance Scaling
        - `hashratetarget` DpsHashrateTarget, required
          - `hashrate_step` TeraHashrate
            - `terahash_per_second` number, double, required
          - `min_hashrate_target` TeraHashrate
            - `terahash_per_second` number, double, required

## Response `200`

Successful response containing DPS settings.

- SetDpsResponse
  - `enabled` boolean, nullable: Flag if Dynamic Performance Scaling is enabled
  - `hashrate_target` DpsHashrateTarget
    - `hashrate_step` TeraHashrate
      - `terahash_per_second` number, double, required
    - `min_hashrate_target` TeraHashrate
      - `terahash_per_second` number, double, required
  - `mode` integer, nullable: Dynamic Performance Scaling mode
  - `on_start_target_percent` integer, nullable: Initial target for Dynamic Performance Scaling in percent
  - `power_target` DpsPowerTarget
    - `min_power_target` Power
      - `watt` integer, required
    - `power_step` Power
      - `watt` integer, required
  - `shutdown_duration` Hours
    - `hours` integer, required
  - `shutdown_enabled` boolean, nullable: Flag if shutdown for Dynamic Performance Scaling should be enabled

---

[API](https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api.md) - [All operations](https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/256foundation/apis/braiins-os-public-rest-api/revisions/d341c8e1d506?raw)
