Commands › Movement
flypath
Fly along a list of points
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "flypath",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"path": "120,120,40;130,125,45;140,140,50",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
pathstring | yes | Points as "x,y,z;x,y,z;…". |
speednumber | no | Metres per second, 0.2–50. 0 means no cap. Default: 6 |
Example response
{
"success": true,
"result": "OK",
"resulttext": "Flying along 3 point(s) to 140, 140, 50"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.