commands

Resize a process's terminal.

post/v1/sandboxes/{id}/processes/{processId}:resize

Request

  • Base URL: https://api.withruntime.com
  • URL: https://api.withruntime.com/v1/sandboxes/{id}/processes/{processId}:resize
  • Auth: HTTP bearer

Path parameters

idstring required

Resource identifier (UUID).

processIdstring required

Resource identifier.

Request body

colsinteger required
rowsinteger required

Response

Success

idstring required
kind'process' required
state'running' | 'exited' | 'killed' | 'timed_out' | 'unknown' required
exitCodeinteger nullable required
commandstring required
user'sandbox' | 'root'

Who it runs as.

cwdstring
ptyboolean
outputEncoding'utf8' | 'base64'
stdinOpenboolean

Input is still open for :write.

stdinOffsetinteger

Bytes of input accepted so far.

startedAtstring date-time required
endedAtstring date-time nullable
timeoutMsinteger nullable
outputBytesinteger
firstOffsetinteger

The oldest byte still kept.

replayedboolean

Changes

No recorded changes to this operation across all 1 revision of this API.