computers

Resume a paused computer, optionally for a set number of hours

Changed on

Brings a suspended computer back with its memory. Body, optional: ends_in_hours or ends_at, and on_end, as on Start (the computer is deleted when the end is up): checked before anything resumes, set once it is running (an hourly computer prepays to it), and the 200 carries ends_at, on_end (read only), deletes_at and the prepay. A resume still under way (202: its memory is coming back from storage) sets no end and says end_not_set with code STILL_RESUMING; set it with PATCH once it is running. An end that could not be set never fails the resume: the 200 carries end_not_set.

post/api/computers/{id}/resume

Request

  • Base URL
    https://www.orgo.ai
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

ends_in_hoursinteger nullable
ends_atstring date-time nullable
on_end'delete' | 'null' nullable

Not a choice: a computer with an end is deleted when its time is up, running or not, with everything on it. "delete" is accepted and changes nothing; omitted or null is the same. Any other value, "stop" included, is 400 INVALID_ENDS: "A computer with an end is deleted when its time is up. To keep a computer, leave out the end." On a computer (GET, the listing, and the create, PATCH, Start and Resume answers) on_end is read only: "delete", "stop" for a computer whose end was set before this rule (stopped then, and deleted 7 days later unless it is started), or null with no end.

Response

Running: success and status running, with the end as on Start.

Changes