Save a chat's computer as a device

Save a chat's computer as a device

Turns the caller's draft computer (a chat's own computer, spaceId: null) into a device in spaceId with name. Nothing is copied or restarted: the chat keeps the same box, which now appears in the space's Devices. Only the draft's owner can save it. Requires space write permission and Enterprise, and counts toward the vault's device limit.

POST/api/computers/{id}/save
Path parameters
idstringrequired
Body
spaceIdstringrequired
namestringrequired

Request

curl
curl -X POST https://trickest.io/api/computers/{id}/save \
  -H "Authorization: Token $TRICKEST_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ }'

Responses

200The saved device
kindenumrequired

One of: linux, android

androidVariantobjectrequired
idstringrequired
spaceIdstringrequired
namestringrequired
stateenumrequired

One of: creating, active, deleting, unconfirmed, deleted

statusenumrequired

One of: pending, running, stopping, stopped, snapshotting, failed, aborted, unavailable

createdBystringrequired
createdAtstringrequired
updatedAtstringrequired
deletedAtstringrequired
nativeobjectrequired

idstringrequired
runtimestring
vcpusnumber
memorynumber
portsnumber[]
timeoutnumber
permissionsobject

writebooleanrequired
sourceobjectrequired

computerIdstringrequired
snapshotIdstringrequired
workflowIdstring
activityobjectrequired

stateenumrequired

One of: working, idle

lastStateenumrequired

One of: running, completed, failed, unconfirmed

sourceenumrequired

One of: agent, workflow, user

operationenumrequired

One of: command, write, start, stop, restore, capture, create

sessionIdstringrequired
runIdstringrequired
workflowIdstringrequired
toolNamestringrequired
observedAtstringrequired
goalobjectrequired
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.