Skip to main content
POST
/
containers
/
{CONTAINER_ID}
/
exec
POST - /containers/{id}/exec
curl --request POST \
  --url 'http://{{api_host}}/containers/{CONTAINER_ID}/exec' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "command": "apt install nodejs -y",
  "log_id": "5861d47e-8183-4a1f-837d-2cd2f99e3759"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

CONTAINER_ID
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response