POST
/
interact
/
drag
/
{instance_id}
Python (SDK)
import os
from skylight_sdk import Skylight


with Skylight(
    apikey=os.getenv("SKYLIGHT_APIKEY", ""),
) as skylight:

    res = skylight.interact.drag(instance_id="<id>", path=[
        {
            "x": 100,
            "y": 200,
        },
    ], step=5)

    # Handle response
    print(res)
{
  "message": "<string>",
  "status": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

instance_id
string
required

Body

application/json
path
Path · object[]
required
button
enum<string>
default:left
Available options:
left,
right,
middle
step
integer | null

Optional step size for drag movements. If not provided, movement will be continuous.

Required range: 1 <= x <= 100

Response

Successfully performed drag operation

status
string
required

Status of the operation

Example:

"success"

message
string
required

Human-readable status message