Commands › Movement
steerpath
Walk along a list of points
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "steerpath",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"path": "120,120,25;130,125,25;140,140,25",
"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;…" — semicolons between points, commas inside each. |
slowflag | no | 1 or true to move slowly. |
Example response
{
"success": true,
"result": "OK",
"resulttext": "Moving along 3 point(s) to 140, 140, 25"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Only the last 128 points are kept. A new call replaces the path.