Leap0

Resize PTY session

Change the terminal dimensions of a PTY session.

POST
/v1/sandbox/{sandboxID}/pty/{sessionID}/resize

Change the terminal dimensions of a PTY session.

Authorization

BearerAuth
AuthorizationBearer <token>

API key passed as a Bearer token in the Authorization header. Alternatively, use the leap0-authorization header.

In: header

Path Parameters

sandboxID*string

Unique sandbox identifier.

sessionID*string

Unique session identifier.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

cols*integer

New terminal columns.

rows*integer

New terminal rows.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.leap0.dev/v1/sandbox/string/pty/string/resize" \  -H "Content-Type: application/json" \  -d '{    "cols": 200,    "rows": 50  }'
{  "id": "my-terminal",  "cwd": "/home/user",  "envs": {    "property1": "string",    "property2": "string"  },  "cols": 120,  "rows": 40,  "created_at": "2019-08-24T14:15:22Z",  "active": true,  "lazy_start": true}
{  "message": "string",  "errors": [    {      "field": "string",      "error": "string"    }  ]}
{  "message": "string"}
{  "message": "string"}