Skip to main content
POST
/
api
/
v1
/
processes
/
{pid}
/
stdin
/
close
Close stdin
curl --request POST \
  --url https://{sandbox_id_or_name}.sandbox.tensorlake.ai/api/v1/processes/{pid}/stdin/close \
  --header 'Authorization: Bearer <token>'
{
  "error": "<string>",
  "code": "<string>"
}
Close a process’s stdin pipe and deliver EOF. The process must be started with stdin_mode: "pipe" for this endpoint to work.

Endpoint

POST /api/v1/processes/{pid}/stdin/close

Example Request

curl -X POST https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/processes/42/stdin/close \
  -H "Authorization: Bearer $TENSORLAKE_API_KEY"

Response

Tensorlake returns 204 No Content when stdin is closed. If stdin was not opened in pipe mode, Tensorlake returns 400 Bad Request. Missing processes return 404 Not Found.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

pid
integer<int32>
required

The operating system PID of the process.

Response

Stdin closed