Preview. Send a signal to the process group of a background command. 15 (SIGTERM) asks it to stop, and 9 (SIGKILL) ends it. A command that already ended takes no signal, and the answer is the command as it is.
AuthorizationBearer <token>Your Munito API key.
sandbox_id*stringThe id of the sandbox.
command_id*stringThe id of the command.
application/json- body
signal?integerThe signal number. 15 (SIGTERM) asks the command to stop, and 9 (SIGKILL) ends it.
1 <= value <= 6415The command as it is now. A signal reaches it only while it runs.
application/json- response
id*stringcommand*array<string>The argument vector that runs.
cwd*stringstatus*stringrunning, then exited with an exit code, or failed when the sandbox lost the command.
"running""exited""failed"started_at*numberUnix seconds.
ended_at?|Unix seconds, or null while the command runs.
exit_code?|The exit code, or null while it runs. A command that a signal stopped has 128 plus the signal.
timed_out?booleanfalsestdout?stringStandard output after stdout of the request. A list of commands leaves it out.
""stderr?stringStandard error after stderr of the request. A list of commands leaves it out.
""stdout_bytes?integerThe bytes of standard output so far. Send it as stdout to read only what follows.
0stderr_bytes?integerThe bytes of standard error so far. Send it as stderr to read only what follows.
0truncated?booleanEach stream keeps 1048576 bytes. The command wrote more, and the rest is left out. Write the output to a file for more.
falsecurl -X POST 'https://api.munito.ai/sandboxes/v1/sandboxes/string/commands/string/signal' \
-H 'Content-Type: application/json' \
-d '{}'{
"id": "string",
"command": [
"string"
],
"cwd": "string",
"status": "running",
"started_at": 0,
"ended_at": 0,
"exit_code": 0,
"timed_out": false,
"stdout": "",
"stderr": "",
"stdout_bytes": 0,
"stderr_bytes": 0,
"truncated": false
}