> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tapkit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Hold and Drag

> Long press then drag

Hold at a point, then drag to another location.

## Request

```bash theme={null}
curl -X POST https://api.tapkit.ai/v1/phones/{phone_id}/hold-and-drag \
  -H "X-API-Key: joot_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

```json theme={null}
{
  "from_x": 100,
  "from_y": 200,
  "to_x": 300,
  "to_y": 400,
  "hold_duration_ms": 500
}
```

| Field              | Type      | Default  | Description               |
| ------------------ | --------- | -------- | ------------------------- |
| `from_x`           | `integer` | required | Starting X coordinate     |
| `from_y`           | `integer` | required | Starting Y coordinate     |
| `to_x`             | `integer` | required | Ending X coordinate       |
| `to_y`             | `integer` | required | Ending Y coordinate       |
| `hold_duration_ms` | `integer` | `500`    | Hold time before dragging |

## Use Cases

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