---
title: "Resize an exec instance"
method: POST
path: "/exec/{id}/resize"
tags: ["Exec"]
---

# Resize an exec instance

`POST /exec/{id}/resize`

Resize the TTY session used by an exec instance. This endpoint only works
if `tty` was specified as part of creating and starting the exec instance.

## Path parameters

- `id` string, required

## Query parameters

- `h` integer, required
- `w` integer, required

## Response `200`

No error

## Other responses

- `400` — bad parameter
- `404` — No such exec instance
- `500` — Server error

---

[API](https://skmtc.net/chapar-rest/apis/docker-engine-api.md) · [All operations](https://skmtc.net/chapar-rest/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chapar-rest/docker-engine-api/versions/3a78a994dd0d/schema)
