Skip to main content
POST
/
api
/
mouse
/
drag
Drag Mouse
curl --request POST \
  --url http://localhost:4242/{computer_name}/api/mouse/drag \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_num": 1,
  "x": 500,
  "y": 300
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Body

application/json

Target coordinates for the drag operation

x
integer
required

X coordinate to move the cursor to

Example:

500

y
integer
required

Y coordinate to move the cursor to

Example:

300

display_num
integer
default:1

Display number to target

Example:

1

Response

Successfully performed drag operation