POST
/
api
/
bash
/
command
Execute Shell Command
curl --request POST \
  --url http://localhost:4242/{computer_name}/api/bash/command \
  --header 'Content-Type: application/json' \
  --data '{
  "command": "ls -la"
}'
{
  "output": "total 20\ndrwxr-xr-x  3 user  group   96 Mar 10 12:34 .",
  "status": "completed"
}

Body

application/json

Response

200
application/json

Successfully executed command

The response is of type object.