Leap0

Restart process

Restart a single desktop process.

POST/api/process/{processName}/restart

Restart a single desktop process.

Authorization

BearerAuth
AuthorizationBearer <token>

API key passed as a Bearer token.

In: header

Path Parameters

processName*string

Desktop process name: xvfb, xfce4, x11vnc, or novnc.

Value in"xvfb" | "xfce4" | "x11vnc" | "novnc"

Response Body

application/json

application/json

curl -X POST "https://<sandbox_id>.sandbox.leap0.dev/api/process/xvfb/restart"
{  "message": "x11vnc restarted",  "status": {    "name": "x11vnc",    "running": true,    "pid": 0,    "stdout_log": "string",    "stderr_log": "string"  }}
{  "message": "Invalid request",  "errors": [    {      "field": "string",      "error": "string"    }  ]}