---
title: "Reset drift for a worker's account"
method: POST
path: "/worker/account/{id}/resetdrift"
tags: ["worker"]
---

# Reset drift for a worker's account

`POST /worker/account/{id}/resetdrift`

Resets the drift for the specified account to 0. Drift is the accumulated delta between the worker's expected balance and the host's actual balance. Used to track if a host is trying to cheat the renter over time.

## Path parameters

- `id` string, required — The account's ID

## Response `200`

Successfully reset drift for worker account

- Account
  - `id` string — The account's ID
  - `cleanShutdown` boolean — Whether the account has been cleanly shutdown. If not, the account will require a sync with the host.
  - `hostKey` string — The host's public key
  - `balance` string — The account's balance as expected by the worker
  - `drift` string — The accumulated drift between the worker's expected balance and the host's actual balance. Used to track if a host is trying to cheat the renter over time.
  - `owner` string — The owner of the account that manages it. This is the id of the worker that maintains the account.
  - `requiresSync` boolean — Whether the account requires a sync with the host. This is usually the case when the host reports insufficient balance for an account that the worker still believes to be funded.

## Other responses

- `404` — The account was not found

---

[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)
