Write stdin
curl --request POST \
--url http://127.0.0.1:8765/v1/workspaces/{workspace_id}/lines/{line_id}/stdin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data '<string>'import requests
url = "http://127.0.0.1:8765/v1/workspaces/{workspace_id}/lines/{line_id}/stdin"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/octet-stream"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'},
body: '<string>'
};
fetch('http://127.0.0.1:8765/v1/workspaces/{workspace_id}/lines/{line_id}/stdin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HTTP/1.1 204 No Content
Commands
Write stdin
POST
/
v1
/
workspaces
/
{workspace_id}
/
lines
/
{line_id}
/
stdin
Write stdin
curl --request POST \
--url http://127.0.0.1:8765/v1/workspaces/{workspace_id}/lines/{line_id}/stdin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/octet-stream' \
--data '<string>'import requests
url = "http://127.0.0.1:8765/v1/workspaces/{workspace_id}/lines/{line_id}/stdin"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/octet-stream"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'},
body: '<string>'
};
fetch('http://127.0.0.1:8765/v1/workspaces/{workspace_id}/lines/{line_id}/stdin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HTTP/1.1 204 No Content
Send input to a running command with open stdin. The request completes when the bytes are buffered. If the command reads slowly, the request waits.
See error examples and recovery steps. The complete OpenAPI contract includes every response schema.
HTTP/1.1 204 No Content
Errors
Errors
| Status | Meaning |
|---|---|
400 | The request is malformed: the body is not JSON (invalid_json) or not a JSON object, a field is missing (missing_field), unknown (unknown_field) or has a wrong value (invalid_value), or the request is otherwise invalid (invalid_request). param names the field at fault. |
401 | The token is missing or wrong (unauthorized). |
404 | The workspace, session, job, file or route does not exist, or the caller may not see it (not_found). |
409 | The request conflicts with the current state. The id or name is taken (already_exists), the workspace is busy on another server or starting or stopping (workspace_busy), the workspace is stopped (workspace_stopped), a file changed since it was read (stale_write), or the state allows no such change (conflict). |
499 | The caller disconnected before the bytes were buffered. The bytes not yet buffered are dropped. The response has no body. |
429 | Past a rate limit (rate_limited), or a new session past max_sessions (session_limit). |
Authorizations
Path Parameters
Body
application/octet-stream
The body is of type file.
Response
204
The bytes are buffered for the line.