---
title: "changes the size of the tty for a container"
method: POST
path: "/containers/{id}/resize"
tags: ["Container"]
---

# changes the size of the tty for a container

`POST /containers/{id}/resize`

## Path parameters

- `id` string, required

## Query parameters

- `h` string
- `w` string

## Response `200`

no error

## Other responses

- `400` — bad parameter
- `404` — An unexpected 404 error occurred.
- `500` — An unexpected server error occurred.

## Changes

- **2018-08-16** `c21008fe7d6f` — 2 warning, 4 info
  - deleted the `query` request parameter `height`
  - deleted the `query` request parameter `width`
  - added the new optional `query` request parameter `h`
  - added the new optional `query` request parameter `w`
  - …2 more
- **2018-08-03** `5ae9c809fadb` — 2 warning, 4 info
  - deleted the `query` request parameter `h`
  - deleted the `query` request parameter `w`
  - added the new optional `query` request parameter `height`
  - added the new optional `query` request parameter `width`
  - …2 more

[Change history](https://skmtc.dev/aliyun/apis/pouch-engine-api/changes/containers/:id/resize/post.md)

---

[API](https://skmtc.dev/aliyun/apis/pouch-engine-api.md) · [All operations](https://skmtc.dev/aliyun/apis/pouch-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aliyun/pouch-engine-api/revisions/36d75b2825fc/schema)
