Skip to content
SoulFire LogoSoulFire

Mount entity

POST
/v1/instances/{instance_id}/bots/{bot_id}:mount

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
entityId*integer
Formatint32
hand?soulfire.v1.Hand

Which hand to use for an action. Mirrors Minecraft's main-hand / off-hand distinction.

Value in"HAND_UNSPECIFIED""HAND_MAIN""HAND_OFF"
connectionEpoch?|

Observation epoch that produced entity_id. When present, the action fails if the bot has reconnected since that observation.

Formatuuid

Response Body

Successful response.

application/json
  1. response
result*
vehicle?|null
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08:mount' \
  -H 'Content-Type: application/json' \
  -d '{
  "entityId": 0
}'
Example Response
{
  "result": {
    "actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0",
    "status": "BOT_ACTION_STATUS_UNSPECIFIED",
    "error": "string"
  },
  "vehicle": {
    "connectionEpoch": "string",
    "networkId": 0,
    "uuid": "string"
  }
}

Was this page helpful?