v1

latestOpenAPI 3.0.02026-07-2321110.8 KB
Machines

Update Machine

Update machine settings. All parameters are optional; only sent fields are updated.

Headers

NameType
Authorization*HMAC {key}:{signature}:{nonce}:{timestamp}
Content-Typeapplication/json

Path Parameters

ParameterTypeDescription
id*IntegerMachine ID

Request Body

ParameterTypeDescription
auto_stop_thresholdIntegerAuto-stop threshold in seconds. Options": "0", "900", "3600", "10800", "21600". "0" to disable.
usage_sourceString"team_balance" or "machine". Controls whether usage is drawn from team balance or machine-only balance.

Success Response Fields

FieldTypeDescription
idStringMachine ID
typeStringAlways "machine"
attributes.nameStringMachine Name
attributes.osStringOperating system: windows or linux
attributes.last_session_start_atStringLast session start time (ISO 8601). null if no session
attributes.auto_stop_thresholdIntegerAuto-stop threshold in seconds
attributes.file_storage_sizeIntegerVagon Files storage size in GB
attributes.disk_sizeIntegerMachine disk size in GB
attributes.network_creditIntegerAvailable outbound network credits in bytes
attributes.assigned_image_idIntegerAssigned image/template ID. null if none
attributes.assigned_image_nameStringName of the assigned base image/template. null if none
attributes.regionStringMachine region
attributes.machine_typeStringMachine Performance Type
attributes.remaining_usageIntegerRemaining usage time in minutes
attributes.deposited_usageIntegerDeposited usage time in minutes
attributes.friendly_statusStringMachine Status
attributes.userObjectAssigned User (null if no user)
attributes.user.idStringUser UUID
attributes.user.typeStringAlways "user"
attributes.user.attributes.emailStringUser email
attributes.user.attributes.nameStringUser name
attributes.permissionsObjectMachine Permissions
attributes.usage_sourceStringUsage source - "machine" (only assigned usages) or "team_balance" (can use team balance when no additional usage on machine)
attributes.taskObjectActive task on the machine (null if no task is active)
attributes.task.idIntegerActive task ID on the machine
attributes.task.uidStringUnique human-readable task name / uid for the machine
attributes.task.created_atStringTask creation timestamp to the machine (ISO 8601)
attributes.latest_image_statusStringSnapshot state of the latest machine image. One of in_use, processing, ready, or null. null = machine has no user data yet (never started, or reset since); in_use = machine is not off; processing = a snapshot is being captured; ready = machine is off and no snapshot is being captured.
client_codeIntegerResponse code (200 for success)
messageStringResponse message
timestampStringResponse timestamp (ISO 8601)
patch/machines/{id}

Request body

auto_stop_thresholdinteger

Auto-stop threshold in seconds. 0 to disable.

usage_source'team_balance' | 'machine'

Usage source - team_balance or machine

Response

Machine updated successfully

client_codeinteger
messagestring
timestampstring date-time
idstring
typestring
All 2 operations