Skip to main content
POST
/
phones
/
{phone_id}
/
hold-and-drag
Hold and Drag
curl --request POST \
  --url https://api.example.com/phones/{phone_id}/hold-and-drag
Hold at a point, then drag to another location.

Request

curl -X POST https://api.tapkit.ai/phones/{phone_id}/hold-and-drag \
  -H "X-API-Key: TK_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"from_x": 100, "from_y": 200, "to_x": 300, "to_y": 400, "hold_duration_ms": 500}'

Request Body

{
  "from_x": 100,
  "from_y": 200,
  "to_x": 300,
  "to_y": 400,
  "hold_duration_ms": 500
}
FieldTypeDefaultDescription
from_xintegerrequiredStarting X coordinate
from_yintegerrequiredStarting Y coordinate
to_xintegerrequiredEnding X coordinate
to_yintegerrequiredEnding Y coordinate
hold_duration_msinteger500Hold time before dragging

Use Cases

  • Reorder list items
  • Move app icons
  • Drag and drop operations