sandboxes
Kill a command
Changed onSends a signal to terminate a running command in a session. The signal can be used to gracefully stop (SIGTERM) or forcefully kill (SIGKILL) the process. The command must still be running for this operation to succeed.
post/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v2/sandboxes/sessions/{sessionId}/cmd/{cmdId}/kill
- Auth: HTTP bearer
Path parameters
cmdIdstring required
The unique identifier of the command to terminate.
Example:cmd_abc123
sessionIdstring required
The unique identifier of the session containing the command.
Example:sbx_abc123
Query parameters
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"signal": 15
}Response
The command was terminated successfully.
Example response
{
"command": {
"args": [
"run",
"build"
],
"cwd": "/vercel/sandbox",
"durationMs": 1234,
"id": "cmd_123a6c5209bc3778245d011443644c8d27dc2c50",
"name": "npm",
"sessionId": "sbx_123a6c5209bc3778245d011443644c8d27dc2c50",
"startedAt": 1673123456789
}
}Changes
- info
removed the non-success response with the status
- info
- info
added the optional property
/to the response with the status
- info