---
title: "Acquire contract lock. This lock is used to prevent multiple operations on the same contract from happening at the same time. Usually any operation that requires an update to the contract's revision needs to acquire the lock."
method: POST
path: "/bus/contract/{id}/acquire"
tags: ["bus"]
---

# Acquire contract lock. This lock is used to prevent multiple operations on the same contract from happening at the same time. Usually any operation that requires an update to the contract's revision needs to acquire the lock.

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

## Path parameters

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

## Request body

- object
  - `duration` integer — The duration of the lock in milliseconds
  - `priority` integer

## Response `200`

Contract lock acquired

- ContractLockID
  - `lockID` integer — The ID of the lock

---

[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/versions/184a3d5207da/schema)
