cURL
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": "left" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Perform a drag operation using absolute coordinates with required start and optional duration.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
'left' | 'right' | 'middle'
Successful Response
Was this page helpful?