Skip to main content
PUT
Cleanup Machine Expired Contracts

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

machine_id
integer
required

ID of the machine on which expired contracts should be cleaned up.

Response

Returns {success: true, ctime, machine_id, user_id, num_deleted, msg} when contracts were deleted; {success: false, msg: "No expired contracts to delete"} when nothing to clean

success
boolean

Whether any contracts were deleted

ctime
number

Unix timestamp when cleanup ran

machine_id
integer

ID of the cleaned machine

user_id
integer

ID of the authenticated user

num_deleted
integer

Number of expired contracts removed

msg
string

Human-readable summary of the operation