Send a control command to a PTY session.
Applies a PTY control operation to an existing session. The action field selects the operation; the other fields in PtyControlParams are interpreted only when they are relevant to the chosen action.
resize: cols and rows are required and must each be in 1..=1000. A 0 or out-of-range value returns 400. The new winsize is applied to the PTY master and the kernel delivers SIGWINCH to the foreground process group.
signal: signal is the POSIX signal name (for example ‘SIGTERM’, ‘SIGHUP’, ‘SIGINT’, ‘SIGUSR1’). Unknown signal names return 400. The signal is delivered to the slave’s foreground process group via killpg(2). If the shell has already exited and there is no foreground process group, returns 400.
close: terminates the session. Sends SIGHUP to the foreground process group (best-effort; ignored if the shell has already exited) and drops the session from the server’s session cache. A subsequent connect with the same session_name will create a fresh PTY session.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The client-chosen PTY session name. Must be 1..=256 ASCII letters, digits, '-' and '_'.
