POST
/
v1
/
computer
/
{machine_id}
/
input
/
mouse
/
drag
Drag mouse (native)
curl --request POST \
  --url https://api.cyberdesk.io/v1/computer/{machine_id}/input/mouse/drag \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "to_x": 123,
  "to_y": 123,
  "start_x": 123,
  "start_y": 123,
  "duration": 123,
  "button": "<string>"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

machine_id
string
required

Body

application/json
to_x
integer
required
to_y
integer
required
start_x
integer
required
start_y
integer
required
duration
number | null
button
string | null
default:left

'left' | 'right' | 'middle'

Response

Successful Response