Leap0

Resize screen

Change the virtual display resolution.

POST/api/display/screen

Change the virtual display resolution.

Authorization

BearerAuth
AuthorizationBearer <token>

API key passed as a Bearer token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

width*integer

New display width.

Range320 <= value <= 7680
height*integer

New display height.

Range320 <= value <= 4320

Response Body

application/json

application/json

curl -X POST "https://<sandbox_id>.sandbox.leap0.dev/api/display/screen" \  -H "Content-Type: application/json" \  -d '{    "width": 1280,    "height": 800  }'
{  "display": ":0",  "width": 1440,  "height": 900}
{  "message": "Invalid request",  "errors": [    {      "field": "string",      "error": "string"    }  ]}