Executor Sandbox
Preview executor
POST /executor/preview
POST /executor/preview
Request body
idintegerbodyThe id of the executor
codestringbodyThe name of the executor
typestringbodyThe type of the executor
languagestringbodyThe language of the executor
packagesstringbodyThe packages of the executor
parametersobjectbodyNo description.
Request Example
{
"id": 123,
"code": "<?php\n\n echo '{\"success\": true}';\n",
"type": "sourceCode",
"language": "php82",
"packages": "",
"parameters": {
"key1": "val1ö\"\\n*!",
"key2": "val'ue"
}
}Responses
200 — Successful operation
Response Example
{
"duration": 22,
"exitCode": 0,
"output": {
"success": true
},
"stderr": null,
"dependenciesCreated": false,
"localExecutionCommand": null
}403 — Unauthorized
500 — Internal error