---
title: "Keep contract lock alive"
method: POST
path: "/bus/contract/{id}/keepalive"
---

# Keep contract lock alive

`POST /bus/contract/{id}/keepalive`

## Path parameters

- `id` string, required — A unique identifier for a file contract

## Request body

- object
  - `duration` integer — The amount of miliseconds to extend the lock by
  - `lockID` ContractLockID
    - `lockID` integer — The ID of the lock

## Response `200`

Contract lock keepalive successful

## Other responses

- `500` — Internal server error

## Changes

- **2024-12-17** `acbb46c060cb` — 1 info
  - endpoint added
- **2024-12-09** `f062c35d8f47` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/bus/contract/:id/keepalive/post.md)

---

[API](https://skmtc.dev/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.dev/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/siafoundation/apis/renterd-api/revisions/e8ca82ef1fcf?raw)
