---
title: "Set terminal dimensions"
method: POST
path: "/v1/sandboxes/{id}/execs/{exec_id}/resize"
tags: ["Sandboxes"]
---

# Set terminal dimensions

`POST /v1/sandboxes/{id}/execs/{exec_id}/resize`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/sandboxes/{id}/execs/{exec_id}/resize`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `exec_id` string, required

## Request body

- SandboxTerminalSize
  - `rows` integer, required
  - `cols` integer, required

## Response `202`

Accepted

- SandboxTerminalSizeReceipt
  - `rows` integer, required
  - `cols` integer, required
  - `version` integer, required

## Other responses

- `default`: Error. The code, message, and fix fields describe the rejection and its remedy.

---

[API](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api.md) - [All operations](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/revisions/a59210899d95?raw)
