---
title: "POST /containers/{id}/rename"
method: POST
path: "/containers/{id}/rename"
---

# POST /containers/{id}/rename

`POST /containers/{id}/rename`

Rename a container

## Path parameters

- `id` string, required

## Query parameters

- `name` string, required

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Changes

- **2026-02-14** `31f80d10d31a` — 4 info
  - api tag `Container` removed
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `409`
  - removed the non-success response with the status `500`

[Change history](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/containers/:id/rename/post.md)

---

[API](https://skmtc.dev/hexlet/apis/docker-engine-api.md) · [All operations](https://skmtc.dev/hexlet/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hexlet/docker-engine-api/revisions/7dbd508c79cf/schema)
