---
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
- `w` integer

## Response `200`

No error

## Other responses

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

---

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