Exec

Description

Commands can be executed against a currently running container.

post
Exec

https://api.codevolve.com/v1/projects/{project_uid}/exec
Request
Response
Path Parameters
project_uid
required
string
The UID of the project to execute the actions for Example: 69aceb37-dda0-4905-8217-afbdd9003dc3.
Body Parameters
cmd
required
array
The command to execute, specified as an array of strings starting with the command and followed by the arguments to the command.
stdin
optional
string
The input to provide to the the cmd, encoded as a Base64 string. Example: VGhlIGlucHV0
cwd
optional
string
The directory to execute the command from. The default is /root/sandbox.
200: OK
{
"stdout": "Hello world!",
"stderr": "",
"status": 0,
"timed_out": false,
"success": true
}

‚Äč