v1

latestOpenAPI 3.0.02026-07-17120114186.8 KB
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

idstring required

A unique identifier for a file contract

Request body

durationinteger

The duration of the lock in milliseconds

priorityinteger

Example request

{
  "duration": 30000,
  "priority": 80
}

Response

Contract lock acquired

lockIDinteger

The ID of the lock

Example response

{
  "lockID": 12
}