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
}
Cookie-based authentication
Successful operation
The response is of type object
.
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
}