Drag
Drag from one coordinate to another.
POST
/api/input/dragDrag from one coordinate to another.
Authorization
BearerAuth AuthorizationBearer <token>
API key passed as a Bearer token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
from_x*integer
Range
0 <= valuefrom_y*integer
Range
0 <= valueto_x*integer
Range
0 <= valueto_y*integer
Range
0 <= valuebutton?integer
Mouse button: 1 = left, 2 = middle, 3 = right.
Default
1Range
1 <= value <= 3Response Body
application/json
application/json
curl -X POST "https://<sandbox_id>.sandbox.leap0.dev/api/input/drag" \ -H "Content-Type: application/json" \ -d '{ "from_x": 0, "from_y": 0, "to_x": 0, "to_y": 0 }'{ "x": 720, "y": 450}{ "message": "Invalid request", "errors": [ { "field": "string", "error": "string" } ]}
