POST
/
executor
/
preview
curl --request POST \
  --url https://demo.enneo.ai/api/mind/executor/preview \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "code": "<?php\n\n echo '\''{\"success\": true}'\'';\n",
  "type": "sourceCode",
  "language": "php82",
  "packages": "",
  "parameters": {
    "key1": "val1ö\"\\n*!",
    "key2": "val'\''ue"
  }
}'
{
  "duration": 22,
  "exitCode": 0,
  "output": {
    "success": true
  },
  "stderr": null,
  "dependenciesCreated": false,
  "localExecutionCommand": null
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Body

application/json
id
integer

The id of the executor

code
string

The name of the executor

type
string

The type of the executor

language
string

The language of the executor

packages
string

The packages of the executor

parameters
object

Response

200
application/json
Successful operation
duration
integer

Duration of the execution in seconds

exitCode
integer

Exit code of the execution

output
object
stderr
string | null

Standard error output, if any

dependenciesCreated
boolean

Indicates if dependencies were created during execution

localExecutionCommand
string | null

Command used for local execution, if any