---
title: "Resize virtual desktop instance type"
method: PUT
path: "/api/dcv/virtual_desktops/resize"
tags: ["Virtual Desktops"]
---

# Resize virtual desktop instance type

`PUT /api/dcv/virtual_desktops/resize`

Modify the instance type of a DCV desktop session. The session must be in stopped state.

## Headers

- `X-EDH-USER` string, required
- `X-EDH-TOKEN` string, required

## Response `200`

Virtual desktop successfully resized

- object
  - `success` boolean
  - `message` string

## Other responses

- `400` — Bad request - missing parameters or invalid instance type
- `401` — Unauthorized - invalid or missing authentication headers
- `403` — Forbidden - session not owned by user or session not in stopped state
- `500` — Internal server error - AWS API or database error

---

[API](https://skmtc.net/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.net/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/versions/6db97cead8df/schema)
