cURL
curl --request POST \ --url https://api.anchorbrowser.io/v1/sessions/{sessionId}/drag-and-drop \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data '{ "startX": 400, "startY": 200, "endX": 500, "endY": 300, "button": "left" }'
{ "status": "success" }
Performs a drag and drop operation from start coordinates to end coordinates
API key passed in the header
The ID of the browser session
Drag and drop performed successfully
The response is of type object.
object