textql.rpc.platform.SandboxService

ExecuteCode

Execute Python code in a running sandbox

post/v1/sandbox/execute

Request

  • The document declares no server URL.
  • Auth
    none required

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

Changes

No recorded changes to this operation across all 1 revision of this API.