v1

latestOpenAPI 3.1.02026-07-263971,2281.1 MB
textql.rpc.platform.SandboxService

ExecuteCode

Execute Python code in a running sandbox

post/v1/sandbox/execute

Headers

Connect-Protocol-Version1 required

Define the version of the Connect protocol

Connect-Timeout-Msnumber

Define the timeout, in ms

Request body

sandboxIdstring required
codestring required

Python code to execute

Response

Success

outputstring[]

Lines of stdout output

errorstring nullable

Error message if execution failed

executionTimeMsinteger