---
title: "Drag Mouse"
method: POST
path: "/api/mouse/drag"
tags: ["mouse"]
---

# Drag Mouse

`POST /api/mouse/drag`

Performs a drag operation from the current cursor position to the specified coordinates.

## Request body

- MouseMoveRequest
  - `x` integer, required — X coordinate to move the cursor to
  - `y` integer, required — Y coordinate to move the cursor to
  - `display_num` integer — Display number to target

## Response `204`

Successfully performed drag operation

## Other responses

- `422` — Validation Error
- `500` — Internal server error

## Changes

- **2026-07-13** `5424450258fc` — 1 info
  - endpoint added
- **2025-01-13** `a2d864f3a8db` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/cuse-dev/apis/fastapi/changes/api/mouse/drag/post.md)

---

[API](https://skmtc.dev/cuse-dev/apis/fastapi.md) · [All operations](https://skmtc.dev/cuse-dev/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cuse-dev/fastapi/revisions/5424450258fc/schema)
