---
title: "Exec a command into a Container"
method: PUT
path: "/api/engine/containers/{containerId}/exec"
tags: ["ui"]
---

# Exec a command into a Container

`PUT /api/engine/containers/{containerId}/exec`

## Path parameters

- `containerId` string, required

## Request body

- ExecApiContainersRequestBody
  - `cmd` string[], required

## Response `200`

200 response

## Changes

- **2024-05-16** `5ebbb3d73706` — 1 info
  - endpoint added
- **2024-02-15** `391707b34e1c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/saashup/apis/netbox-docker-agent/changes/api/engine/containers/:containerId/exec/put.md)

---

[API](https://skmtc.dev/saashup/apis/netbox-docker-agent.md) · [All operations](https://skmtc.dev/saashup/apis/netbox-docker-agent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/saashup/netbox-docker-agent/revisions/a704a83fd7f8/schema)
