Skip to main content
POST
/
api
/
v1
/
terminal
/
{sessionId}
/
resize
Resize terminal
curl --request POST \
  --url http://localhost:3000/api/v1/terminal/{sessionId}/resize \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "cols": 123,
  "rows": 123
}
'
{
  "success": true,
  "data": {}
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Path Parameters

sessionId
string
required

Terminal session ID

Body

application/json
cols
integer
required

New column count

rows
integer
required

New row count

Response

Terminal resized

success
boolean
required
data
object