---
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

## Changes

> 4 revisions in range; 3 could not be searched.

- **2023-04-21** `04e23a3e68d7` — 2 info
  - the `query` request parameter `h` became optional
  - the `query` request parameter `w` became optional

[Change history](https://skmtc.dev/openshift/apis/docker-engine-api/changes/exec/:id/resize/post.md)

---

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