POST
/
interact
/
drag
/
{instance_id}
import { Skylight } from "skylight-sdk";

const skylight = new Skylight({
  apikey: process.env["SKYLIGHT_APIKEY"] ?? "",
});

async function run() {
  const result = await skylight.interact.drag("<id>", {
    path: [
      {
        "x": 100,
        "y": 200,
      },
    ],
    step: 5,
  });

  // Handle the result
  console.log(result);
}

run();
{
  "message": "<string>",
  "status": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

instance_id
string
required

Body

application/json
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

200
application/json
Successfully performed drag operation
status
string
required

Status of the operation

Example:

"success"

message
string
required

Human-readable status message