Skip to content
SoulFire LogoSoulFire

Plan bot path

POST
/v1/instances/{instance_id}/bots/{bot_id}/pathfinder:plan

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string
Formatuuid
bot_id*string
Formatuuid

Request Body

application/json
  1. body
goal*

A pathfinding destination. Exactly one variant must be set.

options?
includeDescriptions?boolean

Response Body

Successful response.

application/json
  1. response
plan*
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/pathfinder:plan' \
  -H 'Content-Type: application/json' \
  -d '{
  "goal": {}
}'
Example Response
{
  "plan": {
    "status": "PATH_PLAN_STATUS_UNSPECIFIED",
    "start": {
      "x": 0,
      "y": 0,
      "z": 0,
      "dimension": "string"
    },
    "steps": [
      {
        "index": 0,
        "kind": "PATH_STEP_KIND_UNSPECIFIED",
        "position": {
          "x": 0,
          "y": 0,
          "z": 0,
          "dimension": "string"
        },
        "description": "string",
        "maximumTicks": 0
      }
    ],
    "blocksToBreak": [
      {
        "x": 0,
        "y": 0,
        "z": 0,
        "dimension": "string"
      }
    ],
    "blocksToPlace": [
      {
        "x": 0,
        "y": 0,
        "z": 0,
        "dimension": "string"
      }
    ],
    "maximumTicks": "string",
    "partialReason": "string",
    "searchMode": "PATHFIND_SEARCH_MODE_UNSPECIFIED",
    "qualityBound": 0.1,
    "routeCost": {
      "expectedDamage": 0.1,
      "irreversibleChanges": 0,
      "placedBlocks": 0,
      "brokenBlocks": 0,
      "durationCost": 0.1,
      "optimizationCost": 0.1
    },
    "expandedStates": "string",
    "generatedTransitions": "string",
    "searchElapsedMillis": "string",
    "frontierReason": "PATH_FRONTIER_REASON_UNSPECIFIED",
    "initialEpsilon": 0.1,
    "finalEpsilon": 0.1,
    "repairIterations": 0,
    "repairedInconsistentStates": 0,
    "incumbentImprovements": 0,
    "requiredQualityBound": 0.1,
    "worldRevision": "string",
    "unavailableChunks": [
      {
        "x": 0,
        "z": 0
      }
    ]
  }
}

Was this page helpful?