Skip to main content
POST
/
browsers
/
{id}
/
process
/
{process_id}
/
resize
Resize a PTY-backed process terminal
curl --request POST \
  --url https://api.onkernel.com/browsers/{id}/process/{process_id}/resize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rows": 32768,
  "cols": 32768
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

process_id
string<uuid>
required

Body

application/json

Resize a PTY-backed process terminal.

rows
integer
required

New terminal rows.

Required range: 1 <= x <= 65535
cols
integer
required

New terminal columns.

Required range: 1 <= x <= 65535

Response

OK

Generic OK response.

ok
boolean
default:true
required

Indicates success.